.navbar {
    min-height: 8vh;
}

.navbar-brand {
    font-size: 1.5rem; /* Increase the size of the brand */
}

.navbar-nav .nav-link {
    font-size: 1.2rem; /* Increase font size of nav items */
    padding: 0.75rem 1rem; /* Increase padding for larger clickable area */
}

.input-group .form-control {
    font-size: 1.2rem; /* Increase font size of the search input */
    padding: 0.75rem 1rem; /* Increase padding for a larger input field */
}

.input-group .btn {
    font-size: 1.1rem; /* Ensure the search button icon scales with the input */
    padding: 0.75rem 1rem; /* Adjust padding to match the input size */
}

.checkout-cart .btn {
    font-size: 1.1rem; /* Increase font size of the checkout button text */
    padding: 0.75rem 1.2rem; /* Increase padding for a larger button */
}

/* Responsive Anpassungen */
.navbar-brand img {
    max-width: 200px;
    min-width: 80px;
    max-height: 120px;
    width: 100%;
    height: auto;

    object-fit: contain;
}

/* Dropdown Card Styling */
.category-card {
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.category-card:hover {
    background-color: #fff;
    border-color: #0d6efd;
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .06);
}

.category-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    background-color: #f1f1f1;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
}

.category-description {
    font-size: 0.875rem;
    line-height: 1.4;
    max-height: 3.2em;
    overflow: hidden;
}

/* === Standard (Desktop) === */
.search-wrapper {
    width: 35vw;
    max-width: 600px;
    min-width: 300px;
}

.search-wrapper .form-control {
    font-size: 1rem;
    padding: 0.65rem 1rem;
}

.search-wrapper .btn {
    font-size: 1rem;
    padding: 0.65rem 1rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    z-index: 1050;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;

    /* Smooth scroll for iOS */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.dropdown-menu {
    max-height: 70vh; /* Begrenze Höhe auf 70 % vom Viewport */
    max-width: 100vw;
    word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
    overflow-y: auto; /* Aktiviere vertikales Scrollen */
    -webkit-overflow-scrolling: touch; /* Smooth Scroll für iOS */
    overscroll-behavior: contain; /* Verhindert "Overscroll-Glitches" */
    scrollbar-width: thin; /* Für Firefox – optional */
}

.navbar-spacer {
    height: 3vh;
}

/* === Mobile & Tablet: Volle Breite === */
@media (max-width: 1199.98px) {
    .search-wrapper {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .search-wrapper .form-control,
    .search-wrapper .btn {
        font-size: 0.95rem;
        padding: 0.55rem 0.75rem;
    }
}


/* Extra Small (xs) - unter 576px */
@media (max-width: 575px) {
    .search-results {
        max-height: 40vh; /* mehr Sichtfläche */
    }

    .navbar-spacer {
        height: 2vh;
    }
}

/* Small (sm) - 576px bis 767px */
@media (min-width: 576px) and (max-width: 767px) {
    .navbar-spacer {
        height: 5vh;
    }
}

/* Medium (md) - 768px bis 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-brand img {
        max-width: 140px;
        height: 80px !important;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.7rem;
    }

    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }

    .navbar-brand {
        margin-left: 3rem;
    }

    .navbar-spacer {
    height: 1vh;
}

}

/* Large (lg) - 992px bis 1199px */
@media (min-width: 992px) and (max-width: 1199px) {

}

/* Extra Large (xl) - 1200px bis 1399px */
@media (min-width: 1200px) and (max-width: 1399px) {

}

/* Extra Extra Large (xxl) - ab 1400px */
@media (min-width: 1400px) {

}

@media (min-width: 1200px) {
    .navbar-collapse {
        display: flex;
        align-items: center;
    }

    .navbar-nav {
        margin-left: 20vw;
    }

    .search-wrapper {
        margin-right: 1rem;
    }
}