/* HEADER */
header {
    background: linear-gradient(rgb(0, 0, 0), #111111);
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 24px;
}

/* NAVBAR — GŁÓWNA STRUKTURA */
nav {
    background-color: #fff;
    color: #000000;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 999;
    height: auto;
}

/* NAV — LOGO */
nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

nav .logo img {
    height: auto;
    max-height: 48px;
    width: auto;
    display: block;
}

nav .logo span {
    color: #000000;
    font-weight: bold;
    font-size: 18px;
}

/* NAV — LINKI (WYŚRODKOWANE) */
nav .nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    color: #000000;
    margin: 0 5px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* SEARCH NAV – HAMBURGER NAVBAR */
.search-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    padding: 10px 15px;
    z-index: 1001;
    background: rgb(255, 255, 255);
    display: none;
    border-bottom: 1px solid #ccc;
    flex-direction: column;
    overflow-y: auto;
}

.search-nav.open {
    display: flex;
}

.search-nav-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: auto;
    padding: 15px 0;
    flex-shrink: 0;
}

.search-nav-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border-radius: 24px;
    border: 1px solid #aaa;
    font-size: 18px;
}

.search-nav-btn {
    font-size: 24px;
    padding: 6px 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
}

.search-nav-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
}

/* NAV — RIGHT SIDE */
nav .right-side {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

nav .search-form {
    display: flex;
    align-items: center;
}

nav .search-form .search-btn {
    background: transparent;
    border: none;
    position: relative;
    font-size: 16px;
    cursor: pointer;
    color: #000000;
}

/* NAV — SHOPPING */
nav .shopping-bag-link {
    color: #000000;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 18px;
    padding: 6px 8px;
    border-radius: 6px;
}

/* NAV — ACCOUNT */
nav .account-link {
    color: #000000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 18px;
    padding: 6px 8px;
    border-radius: 6px;
}

nav .account-link:hover {
    background: rgba(0,0,0,0.08);
    border-radius: 50%;
}

/* NAV — HAMBURGER */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: rgb(0, 0, 0);
    cursor: pointer;
    padding: 6px 10px;
}

/* NAV — MENU DRAWER */
.menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    display: none;
    flex-direction: column;
    padding: 80px 20px 20px;
    gap: 20px;
    z-index: 998;
}

.menu-drawer a {
    color: rgb(0, 0, 0);
    font-size: 20px;
    text-decoration: none;
}

.menu-drawer a:hover {
    text-decoration: underline;
}

.menu-drawer-close {
    background-color: white;
    color:black;
    border: black 1px solid;
    padding: 10px;
    font-size: large;
}

.menu-drawer.open {
    display: flex;
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* MEDIA — NAVBAR WĄSKI */
@media (max-width: 800px) {
    nav .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .search-nav-close {
        display: none;
    }
}

/* MEDIA — NAVBAR BARDZO WĄSKI */
@media (max-width: 600px) {
    nav {
        padding: 8px 10px;
    }
    nav .logo img {
        max-height: 40px;
    }
    nav .nav-links {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    nav .search-form input[type="search"] {
        min-width: 100px;
        padding-right: 36px;
    }
    nav .account-link {
        font-size: 14px;
    }
}

/* SEARCH RESULTS */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 70vh;
    overflow-y: auto;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    flex: 1;
}

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    align-items: center;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-item div {
    flex: 1;
}

.search-result-item h4 {
    margin: 0;
    font-size: 14px;
    color: #000;
}

.search-result-item p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #d32f2f;
    font-weight: 600;
}