/* ============================
   HEADER
   ============================ */
body {
    font-family: "Inter", "Roboto", sans-serif;
}

.gr-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0.6rem 2rem;
    position: relative;
    z-index: 999999;
}

.gr-nav {
    height: 95px;
    display: flex;
    align-items: center;
    gap: 2rem; /* WICHTIG: Abstand zwischen Logo, Cart, Menü */
    position: relative;
}

/* Logo */
.gr-logo img.logo {
    height: 70px;
    width: auto;
}

/* Cart ICON – Desktop */
.gr-cart {
    display: flex;
    align-items: center;
}

.gr-cart a {
    display: flex;
    align-items: center;
    position: relative;
}

.cart-svg {
    width: 30px;
    height: 30px;
    stroke: #4b78c0;
    fill: none;
    stroke-width: 2;
}

.cart-count {
    background: #4b78c0;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 12px;
    position: absolute;
    top: -6px;
    right: -10px;
}

/* Menü rechts */
.gr-right {
    margin-left: auto; /* Menü ganz nach rechts schieben */
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Desktop Menü */
.gr-menu {
    display: flex;
    gap: 1.6rem;
    list-style: none;
}

.gr-menu li a {
    padding: 0.4rem 0;
    font-size: 1.05rem;
    color: #222;
    text-decoration: none;
    font-weight: 500;
}

/* Burger */
.gr-burger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 9999;
}
/* SEARCH FIELD */
.gr-search {
    flex: 0 0 280px;
}

.gr-search input {
    width: 100%;
    padding: 0.55rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.gr-search input:focus {
    border-color: #4b78c0;
}
#searchResults {
    display: none;
    position: relative;
    z-index: 10;
    background: white;
    padding: 10px 0;

    /* ⭐ Zentrierung */
    max-width: 600px;
    margin: 0 auto;

    /* Optional: schöner Look */
    border: 1px solid #ddd;
    border-radius: 8px;
}


.search-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}


/* ============================
   MOBILE
   ============================ */
@media (max-width: 768px) {

    .gr-nav {
        height: auto;
        flex-wrap: wrap;
    }

    .gr-logo img.logo {
        height: 50px;
    }

    .gr-burger {
        display: block;
    }

    /* Cart rechts neben Burger */
    .gr-cart {
        margin-left: auto;
        margin-right: 1rem;
    }

    /* Mobile Menü */
    .gr-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        right: 1rem;
        top: 80px;
        background: white;
        border: 1px solid #ccc;
        width: 200px;
        padding: 0.6rem 0;
        z-index: 9999;
    }

    .gr-menu.gr-open {
        display: flex !important;
    }

    .gr-search {
        flex: 1 1 100%;
        order: 2;
        margin-top: 0.5rem;
    }
}
