* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}

.playfair-display {
    font-family: "Playfair Display", serif;
}

.poppins-thin {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.poppins-extralight {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.poppins-extrabold {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.poppins-thin-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.poppins-extralight-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.poppins-light-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.poppins-regular-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.poppins-medium-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.poppins-semibold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.poppins-bold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.poppins-extrabold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.poppins-black-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: italic;
}


.delius-swash-caps-regular {
    font-family: "Delius Swash Caps", cursive;
    font-weight: 400;
    font-style: normal;
}

body {
    position: relative;
    height: 100%;
    z-index: 0;
    font-weight: normal;
    font-family: "Delius Swash Caps", cursive;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify content: space between;
}

nav {
    position: sticky;
    top: 0;
    height: 4.5rem;
    min-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    z-index: 1000;
    padding: 0 4rem;
    background-color: rgb(241, 244, 240);
    box-shadow: black 0 0 7px;
}


.top-navbar {
    display: flex;
    width: 100%;
    font-size: 18px;
    color: black;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}


.logo-name {
    font-size: 2rem;
    font-weight: normal;
    padding: 0.3rem 0.5rem;
    font-family: "Delius Swash Caps", cursive;
    color: white;
    border-radius: 0.7rem;
    background-color: rgb(95, 172, 33, 1);
}


.ikonki_nav {
    display: flex;
    width: auto;
    gap:0.5rem;
    margin-right: 0;
    margin-left: 1rem;
    align-items: center;
}

.nav-icon {
    width: auto;
    height: 2.5rem;
    padding:0.4rem;
    border-radius: 0.7rem;
    display: flex;
    cursor: pointer;
}

#cart-icon{
    background-color: rgba(104, 188, 37, 0.9);


}

#cart-icon:hover{

    background-color: rgb(104, 188, 37);
    transition: background-color 0.3s ease;
}



.kategorie-nav {
    display: flex;
    position: relative;
    font-weight: normal;
    margin-left: auto;
    margin-right: auto;
}

.kategorie-nav div {
    display: flex;
    position: relative;
    font-weight: normal;
}

.pasek1 {
    color: black;
    font-size: 16px;
    padding: 0.5rem 1.1rem;

}



.pasek1::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    bottom: 0;
    background-color: rgb(95, 172, 33);
    transition: width 0.3s ease;
}


.pasek1:hover::after {
    width: 100%;
}

.pasek1:hover{
    width: 100%;
    background-color: rgba(246, 246, 246, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dropdown{
    min-width: 1rem;
    position:relative;
}

.dropdown *{
    box-sizing: border-box;
}

.dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 1rem;

}

.select{
    display:flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5em;
    cursor:pointer;
}


.menu {
    background-color: rgb(241, 244, 240);
    list-style: none;
    padding: 0.2em 0.5em;
    border-radius: 0 0 0.5rem 0.5rem;
    position: absolute;
    top: 3.5rem;
    left: 50%;
    width: 200%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -10px);
    transition: opacity 0.3s ease, transform 0.5s ease;
    z-index: 1;
    text-align: left;
}



.menu li{

    position: relative;
    padding: 0.7rem 0.2rem;
    border-radius: 0.5em;
    cursor:pointer;
    font-size:14px;
    text-align:center;
}

.menu li::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    bottom: 0;
    background-color: rgb(95, 172, 33);
    transition: width 0.3s ease;
}

.menu li:hover::after {
    width: 70%;
}

.menu-open{
    display:block;
    opacity:1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition-delay: 0s;
}


.search {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: rgb(95, 172, 33);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transition: width .35s ease, background-color .2s ease;
    margin-left: auto;
    margin-right: auto;
}

.search:hover {
    background: rgb(95, 172, 33, 0.9);
}

.search__toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    transition: left .35s ease, transform .35s ease, color .2s ease, width .35s ease, height .35s ease;
}

.search.active-search .search__toggle {
    left: 10px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    color: #333;
}

.search__toggle i {
    display: block;
    line-height: 0;
}

.search__input {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    padding: 0 16px 0 50px;
    border: none;
    border-radius: 999px;
    outline: none;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: width .35s ease, opacity .2s ease;
    font-size: 16px;

}

.search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.search.active-search {
    width: min(350px, 92vw);
    background: #fff;
}

.search.active-search .search__input {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
}

.search.active-search .search__toggle {
    color: #333;
}

.search__toggle .bx {
    margin: 0;
    transform: translateY(1px) translateX(1px);

}

.search__clear {
    position: absolute;
    right: 10px;
    top: 55%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: none;

}

.search__clear .bx {
    margin: 0;
    line-height: 1;
    font-size: 32px;
    font-weight: 400;
}


.search.active-search .search__clear {
    display: block;
}

.not-visible{
    display:none;
}

.live-results {
    position: absolute;
    top:3rem;
    background: #fff;
    border:1px solid #ddd;
    margin-top: 4px;
    width:100%;
    max-width:520px;
    border-radius: 10px;
    z-index:1000;
    padding: 1rem;
    font-size: 1rem;
}

.live-result{
    padding:10px 12px;
    cursor:pointer;
}

.live-result:hover, .live-result[aria-selected="true"]{
    background:#f6f6f6;

}

.item {
    text-decoration: none;
}

.col-10{
    border-bottom: 1px green groove;
    padding: 4px 0;
}



















/* Burger – bez zmian */

.burger {
    display: none;
    position: absolute;
    right: 2rem;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    padding: 10px;
    z-index: 10000;
}

.burger span {
    width: 24px;
    height: 2px;
    background: black;
    display: block;
}

.kategorie-nav .only-burger { display: none; }



a {
    color: #000; /* Czarny kolor dla linku */
    text-decoration: none;  /* Usuwamy podkreślenie */
}

/* --- user popover --- */
.user-popover {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 999px;
}

.user-trigger:focus-visible {
  outline: 2px solid rgb(95,172,33);
  outline-offset: 2px;
}

/* panel */
.user-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 2000;
}

/* strzałka */
.user-panel::before {
  content: "";
  position: absolute;
  top: -6px; right: 14px;
  width: 10px; height: 10px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -2px -2px 6px rgba(0,0,0,.03);
}

/* pokazywanie: hover (desktop) i focus-within (klawiatura/mobil) */
.user-popover:hover .user-panel,
.user-popover:focus-within .user-panel,
.user-popover.open .user-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* zawartość */
.user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 6px;
}

.user-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71; /* zalogowany */
}
.user-dot.gray { background: #aaa; } /* niezalogowany */

.user-name {
  font-weight: 600;
  margin-bottom: 10px;
}

.user-actions {
  display: grid;
  gap: 8px;
}

.btn1 {
  display: inline-block;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
}

.btn-primary {
  background: rgb(95,172,33);
  color: #fff;
}
.btn-primary:hover { filter: brightness(0.95); }

.btn-secondary {
  background: #f2f2f2;
}
.btn-secondary:hover { background: #e9e9e9; }

.btn-link {
  background: transparent;
  color: #333;
  padding: 6px 0;
  border: 0;
}
.btn-link:hover { text-decoration: underline; }

/* na bardzo wąskich ekranach niech panel nie ucieka poza ekran */
@media (max-width: 480px) {
  .user-panel {
    right: -20px;
    min-width: 240px;
  }
}



@media (max-width:1150px){
  .burger{ display:flex; width:40px; height:40px; margin-left:auto; }
  .burger.active{ position:fixed; top:1.1rem; right:2rem; border-radius:50%; }
  .burger.active .bar:nth-child(2){ opacity:0; }
  .burger.active .bar:nth-child(1){ transform:translateY(8px) rotate(45deg); }
  .burger.active .bar:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }
  .burger .bar{ display:block; width:24px; height:2px; background-color:black; transition:.3s ease-in-out; }
  .kategorie-nav .only-burger {
        display: flex;            /* tak jak inne wiersze menu */

   }

  .kategorie-nav .only-burger .pasek1 {
        width: 100%;
        padding: 0.5rem 2rem;     /* spójnie z resztą pozycji */
   }

   .kategorie-nav .only-burger button {
        width: 100%;

     /* spójnie z resztą pozycji */
   }

   .kategorie-nav .only-burger form{

    width:100%;
   }

   button.pasek1 {
    all: unset; /* Usuwa domyślne style przycisków (np. border, padding, background) */
    display: inline-block;
    width: 100%; /* Rozciąga na całą szerokość */

    font-size: 16px;
    color: black;
    cursor: pointer;

    border-radius: 0.5em;
    text-decoration: none;
    background-color: transparent; /* Brak tła */
}

button.pasek1:hover {
    background-color: rgba(246, 246, 246, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

button.logout-button {
    width: 100%; /* Zapewnia, że przycisk będzie rozciągał się na całą szerokość */
    display: block; /* Sprawia, że przycisk jest blokiem (rozciąga się na pełną szerokość) */
    font-size: 16px;
    color: black;
    cursor: pointer;
    border-radius: 0.5em;
    text-decoration: none;
    background-color: transparent; /* Brak tła */
}

button.logout-button:hover {
    background-color: rgba(246, 246, 246, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}




  .kategorie-nav{
    position:fixed; top:0; right:0; height:100vh; width:270px;
    background-color:rgba(246,246,246,.5); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
    text-align:start; flex-direction:column; z-index:1000000; letter-spacing:1px; padding:4rem 0;
    transform:translateX(100%); transition:transform .5s ease-in-out;
  }
  .pasek1{ padding:.5rem 2rem; color:black; width:100%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 235, 187, 0.4)); }
  .pasek1:hover{ background-color:rgba(246,246,246,.5); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); text-decoration:none; border-radius:2px; }
  .ikonki_nav {
        display: flex;  /* Wyświetl ikonki w elastycznym układzie */
      /* Odstęp pomiędzy ikonami */

    }

    .nav-icon:not(#cart-icon) {
        display: none;
    }



    /* Efekt najechania na koszyk */
    #cart-icon:hover {
        background-color: rgba(95, 172, 33, 0.9); /* Jaśniejszy zielony przy hoverze */
        transform: scale(1.1); /* Powiększenie przy hoverze */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Zwiększony cień */
    }

    /* Dodajemy ikonę do środka, aby była idealnie wyśrodkowana */
    #cart-icon img {
        width: 40px;   /* Dopasowanie rozmiaru ikony */
        height: 40px;  /* Dopasowanie rozmiaru ikony */
    }

    /* Efekt, gdy ikona koszyka jest kliknięta (na przykład po dodaniu produktu do koszyka) */
    #cart-icon.clicked {
        background-color: #ff6f61; /* Zmiana koloru tła na czerwony po kliknięciu */
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5); /* Większy cień */
        transform: scale(1.15); /* Jeszcze większe powiększenie */
    }
    #burger-icon1{
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(141, 248, 105, 0.4));
    }

    #burger-icon2{
        background: linear-gradient(to bottom, white, rgba(255, 192, 203, 0.5));
        width:100%;

    }

    #burger-icon3{
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 192, 203, 0.5));
    }


  .kategorie-nav.active{
    display:flex; flex-direction:column; position:fixed; top:0; right:0; transform:translateX(0);
    transition:.5s ease-in-out; box-shadow:rgba(0,0,0,.3) -10px 0 10px;
  }
  .search{ margin-left:auto; margin-right:3rem; }
  .logo-search-bar{ flex-direction:column; gap:0; align-items:flex-start; }
  .logo-name{ font-size:3vw; }
  nav{ align-items:center; }
  .dropdown .menu {
      display: none !important;
  }




.select{

    width:100%;
}


}


@media (max-width:1000px){
  .kategorie-nav{ width:260px; }
  .logo-name{ font-size:3.5vw; }
}


@media (max-width:900px){
  .kategorie-nav{ width:240px; }
}


@media (max-width:768px){

  nav{ border-radius:0; }
  .logo-name{ font-size:3.5vw; margin-left:-3.3rem; }
  .burger{ margin-right:-1.5rem; }
  .kategorie-nav{ width:220px; }

  .pasek1{
        font-size: 2.5vw;
    }


  .search {

        width: 36px;
        height: 36px;

        margin-left:auto;
        margin-right: 0;
    }

    .search__toggle {
        width: 40px;
        height: 40px;
        font-size: 22px;    /* mniejsza ikona lupy */
    }

    .search__toggle .bx-search{
        font-size: 22px;
    }

    .search.active-search {
        width: min(260px, 86vw); /* w trybie otwartym też trochę węższa */
    }

    .search.active-search .search__toggle {
        left: 8px;             /* wyrównanie po zmniejszeniu */
        width: 30px;
        height: 30px;
    }

    .search.active-search .bx-search {
    cursor: pointer;  /* Zmiana kursora, by pokazać, że kliknięcie jest możliwe */
}

    .search__input {
        padding-left: 42px;    /* dopasuj odstęp do mniejszego przycisku */
        font-size: 14px;
    }

    .search__clear {
        width: 30px;
        height: 30px;
        right: 6px;
        top:17px;
    }

    nav {
        height: 3.4rem;         /* było 4.5rem */
           /* trochę ciaśniejsze odstępy */
    }

    .burger {

        width: 30px;
        height: 35px;
        margin-left:0;
        right:3rem;

    }

    .burger .bar {
        display: block;
        width: 20px;
        height: 2px;
        background-color: black;
        transition: 0.3s ease-in-out;
    }

    .burger.active {
        position: fixed;
        top: 0.6rem;
        right: 3rem;
        border-radius: 50%;
    }


    .burger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .burger.active .bar:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }

    .burger.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    #cart-icon {
        width: 45px;    /* Zwiększ rozmiar ikony */
        height: 45px;   /* Zwiększ rozmiar ikony */

    }

    /* Dodajemy ikonę do środka, aby była idealnie wyśrodkowana */
    #cart-icon img {
        width: 30px;   /* Dopasowanie rozmiaru ikony */
        height: 30px;  /* Dopasowanie rozmiaru ikony */
    }

}



@media (max-width: 700px) {

    .category-icons li {

        min-width: 180px;
    }

    .newsletter {
        height: 60%;
        width: 91%;
        gap: 1.5rem;
        font-size: 1.8rem;


    }

    .newsletter-info {
        font-size: 0.9rem;
    }

       .kategorie-nav .only-burger button {

        font-size:2.3vw;
     /* spójnie z resztą pozycji */
   }
}


@media (max-width: 529px){


    .search.active-search {
        width: min(200px, 72vw);
        background: #fff;
    }

     .kategorie-nav .only-burger button {

        font-size:2.6vw;
     /* spójnie z resztą pozycji */
   }

}

@media (max-width: 450px) {

    .search {

        width: 30px;
        height: 30px;

        margin-left:auto;
        margin-right: -1.5rem;
        font-size: 13px;
    }

    .search__toggle .bx-search{
        font-size: 18px;
    }

    .search__clear {
        width: 27px;
        height: 27px;
        right: 6px;

    }
    .search__clear .bx-x{

        font-size: 21px;
    }

    .search__input {
        font-size: 10px;
    }

    .live-results {

    top:1.8rem;
}



    .category-icons li {

        min-width: 80px;
    }
    .category-image-wrapper {

        width: 80px;
        height: 80px;
    }

    .category-icons {
        display: flex;
        column-gap:  2rem;
        height: 30rem;
        margin-top: 1.5rem;

    }

    .search.active-search {
        width: min(190px, 72vw);

    }

     .kategorie-nav .only-burger button {

        font-size:3vw;
     /* spójnie z resztą pozycji */
   }


}


@media (max-width: 600px) {

    .search__clear {
        width: 25px;
        height: 25px;
        right: 6px;
        top:17px;
    }

    .search__clear .bx-x{
        font-size: 25px;
    }

}


@media (max-width: 450px){

    .search.active-search {
        width: min(170px, 62vw);
        background: #fff;
    }

     .pasek1{
        font-size: 3.2vw;
    }

       .kategorie-nav{
    width:200px;
   }


}

@media (max-width: 380px){



       .kategorie-nav{
    width:180px;
   }


}

#o-nas-section {
  scroll-margin-top: 110px; /* przewiń o 30px wyżej */
}


#location-section{
    scroll-margin-top: 110px;
}













