/* =======================================
   Allgemeine Stile
   ======================================= */
   body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: #005580;
    transition: color 0.3s ease;
}

a:hover {
    color: #003055;
}

/* =======================================
   Header-Stile
   ======================================= */
header {
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Wenn das Mobile-Menü offen ist: Body-Scroll sperren */
body.no-scroll {
    height: 100vh;
    overflow: hidden;
}

/* ---------- Top-Bar mit drei Abschnitten ---------- */
.top-bar {
    background-color: #003055;
    color: #fff;
    padding: 10px 0;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.left-info,
.middle-info,
.right-info {
    flex: 1;
    text-align: center;
}

.left-info {
    text-align: left;
}

.middle-info {
    text-align: center;
}

.right-info {
    text-align: right;
}

/* ---------- Hauptheader ---------- */
.main-header {
    padding: 10px 0;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px; /* Optional: Abstand zwischen den Elementen */
}

.logo {
    order: 1;
    width: 200px;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.search-bar {
    order: 2;
    flex:1;
    flex-grow: 1;
    margin: 0 20px;
    position: relative;
}

.search-bar form {
    display: flex;
}

.search-bar input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-bar button {
    padding: 10px 20px;
    background-color: #003055;
    border: none;
    border-radius: 0 5px 5px 0;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #00457A;
    color: #fff;
}

.search-bar-mobile {
    flex: 1;
    margin-left: 10px;
}

.search-bar-mobile input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px; 
}

.search-bar-mobile input:focus,
.search-bar-mobile button:focus {
    outline: none;
    border-color: #005580;
}

.search-bar-mobile button {
    padding: 10px 15px;
    border: 1px solid #ccc;
    background-color: #005580;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 16px; 
}

.search-bar-mobile button:hover {
    background-color: #003055;
    transform: scale(1.05);
}

.search-bar-mobile form {
    display: flex;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* ---------- Anmelden neben dem Warenkorb ---------- */
.user-actions {
    order:4;
    display: flex;
    align-items: center;
}

.user-actions a {
    display: flex;
    align-items: center;
    color: #005580;
    font-weight: 500;
    transition: color 0.3s ease;
}

.user-actions a:hover {
    color: #003055;
}

.user-actions a i {
    margin-right: 5px;
}

/* ---------- Wunschliste ---------- */
.wishlist {
    order:5;
    display: flex;
    align-items: center;
}

.wishlist a {
    display: flex;
    align-items: center;
    color: #005580;
    font-weight: 500;
    transition: color 0.3s ease;
}

.wishlist a:hover {
    color: #003055;
}

.wishlist i {
    font-size: 20px;
    margin-right: 8px;
}

.wishlist-text {
    font-size: 14px;
}

/* ---------- Warenkorb ---------- */
.cart {
    order:6;
    display: flex;
    align-items: center;
}

.cart a {
    display: flex;
    align-items: center;
    color: #005580;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cart a:hover {
    color: #003055;
}

.cart i {
    font-size: 20px;
    margin-right: 8px;
}

.cart-text {
    font-size: 14px;
}

/* ==========================================
   Sticky-Logik für Desktop & Mobile
   ========================================== */
/* 1) Desktop-Variante (ab 1025px) */
.desktop-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    /* Hintergrund evtl. etwas farbig, damit man es besser erkennt */
    background-color: #fff;
}

/* 2) Mobile-Variante (bis 1024px) */
/* Wenn mobile-hidden => Element wird komplett ausgeblendet (z. B. Höhe 0, oder display none) */
.mobile-hidden {
    /* Statt display:none => transform */
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    /* Falls du verhindern willst, dass Buttons anklickbar sind, solange es ausgeblendet ist: */
    pointer-events: none;
  }
  
  
/* Nav-Mobile-Topbar fixieren */
.mobile-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 3000;
}

.mobile-fixed-mainheader {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 3000; /* höher als Nav-Mobile-Topbar */
    transition: all 0.3s ease; /* Transition für alle Eigenschaften */
}

.mobile-fixed-navtopbar {
    position: fixed !important;
    left: 0;
    right: 0;
    top: 0;
    z-index: 2000; /* unter dem Main-Header */
    transition: all 0.3s ease; /* Transition für alle Eigenschaften */
}

/******************************************
 * Desktop-Navigation (Mega-Menü bei Hover)
 ******************************************/
.nav-desktop {
    position: relative;   
    background-color: #005580;
}

.nav-desktop .container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 4px 10px;
}

.nav-links-desktop {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 5px;
    justify-content: center;
}

.nav-links-desktop > li {
    position: static;
    flex: 0 0 auto;
}

.nav-links-desktop > li > a {
    display: block;
    padding: 6px 14px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    white-space: nowrap;
    line-height: 1.35;
    border-radius: 6px;
    position: relative;
}

.nav-links-desktop > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transition: transform 0.3s ease;
}

.nav-links-desktop > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-links-desktop > li > a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-links-desktop > li.has-megamenu.open > a {
    background-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 999px) {
    .nav-desktop {
        display: none;
    }

    .hide-in-mobile {
        display: none;
    }
}

/* ==========================================
   MODERNES MEGA-MENÜ DESIGN
   ========================================== */

.mega-menu {
    display: none; 
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 18px 0 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Standard immer versteckt */
.nav-links-desktop > li.has-megamenu .mega-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Nur wenn .open auf dem <li> steht */
.nav-links-desktop > li.has-megamenu.open .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Responsive Schriftgrößen für Hauptmenü */
@media (min-width: 999px) and (max-width: 1023px) {
    .nav-links-desktop > li.has-megamenu > a {
        font-size: 11px;
        padding: 4px 5px;
    }
}

@media (min-width: 1024px) and (max-width: 1099px) {
    .nav-links-desktop > li.has-megamenu > a {
        font-size: 12px;
        padding: 4px 6px;
    }
}

@media (min-width: 1100px) and (max-width: 1199px) {
    .nav-links-desktop > li.has-megamenu > a {
        font-size: 13px;
        padding: 5px 6px;
    }
}

@media (min-width: 1200px) and (max-width: 1400px) {
    .nav-links-desktop > li.has-megamenu > a {
        font-size: 14px;
        padding: 5px 7px;
    }
}

/* ==========================================
   DREI-SPALTEN LAYOUT
   ========================================== */

.mega-menu-content.three-col-layout {
    display: grid;
    grid-template-columns: minmax(300px, 340px) minmax(420px, 1fr) minmax(300px, 340px);
    align-items: stretch;
    gap: 20px;
    width: 100%;
    padding: 0 clamp(16px, 3vw, 36px) clamp(12px, 2vw, 24px);
    box-sizing: border-box;
}

@media (max-width: 1280px) {
    .mega-menu-content.three-col-layout {
        grid-template-columns: minmax(260px, 320px) minmax(320px, 1fr) minmax(260px, 320px);
        gap: 18px;
        padding: 0 clamp(12px, 4vw, 28px) clamp(10px, 2vw, 20px);
    }

    .mega-menu-right {
        max-width: 300px;
    }
}

/* ==========================================
   LINKE SPALTE - HAUPTKATEGORIEN
   ========================================== */

.mega-menu-left {
    position: relative;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
    overflow: hidden;
}

.subcat-list-left {
    list-style: none;
    margin: 0;
    padding: 0;
}

.subcat-list-left li {
    cursor: pointer;
    padding: 12px 16px;
    color: #2c3e50;
    border-left: 3px solid transparent;
    border-radius: 6px;
    margin-bottom: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
}

.subcat-list-left li:hover {
    background: linear-gradient(90deg, #f1f8ff 0%, transparent 100%);
    border-left-color: #005580;
    color: #005580;
    transform: translateX(4px);
}

.subcat-list-left li.active {
    font-weight: 600;
    color: #005580;
    border-left-color: #005580;
    background: linear-gradient(90deg, #e6f2ff 0%, #f0f7ff 100%);
    box-shadow: 0 2px 8px rgba(0, 85, 128, 0.12);
}

.subcat-list-left li.has-submenu {
    position: relative;
    padding-right: 35px;
}

.subcat-list-left li.has-submenu::after {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    opacity: 0.6;
    transition: all 0.3s ease;
    font-size: 18px;
}

.subcat-list-left li.has-submenu:hover::after {
    opacity: 1;
    color: #005580;
    transform: translateY(-50%) translateX(3px);
}

.subcat-list-left li.has-submenu.active::after {
    opacity: 1;
    color: #005580;
}

/* ==========================================
   MITTLERE SPALTE - UNTERKATEGORIEN
   ========================================== */

.mega-menu-middle {
    position: relative;
    padding: 16px 22px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    min-height: 200px;
    height: 100%;
    overflow: hidden;
}

.sub-subcat-box {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sub-subcat-box.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-subcat {
    margin-bottom: 6px;
}

.sub-subcat a {
    display: block;
    padding: 12px 16px;
    color: #475569;
    border-left: 3px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.sub-subcat a:hover {
    border-left-color: #005580;
    background: linear-gradient(90deg, #f0f7ff 0%, transparent 100%);
    color: #005580;
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 85, 128, 0.12);
}

/* ==========================================
   RECHTE SPALTE - TOP DEAL
   ========================================== */

.mega-menu-right {
    display: flex;
    flex-direction: column;
    align-items: stretch; 
    justify-content: flex-start;
    padding: 16px 22px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
    overflow: visible;
    max-width: 320px;
    margin: 0 0 0 auto;
}

.mega-menu-right h3 {
    font-size: 18px;
    color: #005580;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.subcat-topdeal-box {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    height: auto;
}

.subcat-topdeal-box.active {
    display: block;
    opacity: 1;
    height: auto;
    width: 100%;
}

.subcat-topdeal-box h3 {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
    color: #005580;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Top Deal verwendet kompaktes Styling */
.subcat-topdeal-box .product-item {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    display: block;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ==========================================
   RESPONSIVE MEGA-MENÜ
   ========================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .mega-menu-content.three-col-layout {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }
    
    .mega-menu-right {
        display: none; /* Top Deal auf Tablet ausblenden */
    }
    
    .mega-menu-middle {
        padding: 15px;
    }
    
    .mega-menu {
        padding: 20px 0;
    }
}

/* Mobile (bis 767px) */
@media (max-width: 767px) {
    .mega-menu {
        position: relative;
        box-shadow: none;
        padding: 15px 0;
        border-radius: 0;
    }
    
    .mega-menu-content.three-col-layout {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 95%;
    }
    
    .mega-menu-left,
    .mega-menu-middle {
        border-radius: 8px;
        padding: 12px;
    }
    
    .mega-menu-right {
        display: none; /* Top Deal auf Mobile ausblenden */
    }
    
    .subcat-list-left li {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .sub-subcat a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* Mega-Menü als Accordion auf Mobile */
    .mega-menu-middle {
        max-height: 400px;
        overflow-y: auto;
    }
}

/* Sehr kleine Geräte (bis 480px) */
@media (max-width: 480px) {
    .mega-menu {
        padding: 10px 0;
    }
    
    .mega-menu-content.three-col-layout {
        width: 100%;
        gap: 10px;
    }
    
    .mega-menu-left,
    .mega-menu-middle {
        padding: 10px;
    }
    
    .subcat-list-left li {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .sub-subcat a {
        padding: 6px 10px;
        font-size: 12px;
    }
}

.product-item-small {
    position: relative;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    text-align: center;
    font-size: 0.75em;
    max-width: 200px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item-small .thumbnails-container .thumbnail {
    width: 30px;
    height: 30px;
}

.product-item-small .discount-label-small {
    display: block !important;      /* falls irgendwo ausgeblendet wird */
    top: 25px;                       /* etwas näher an der Ecke */
    left: 3px;
    transform: rotate(-20deg);      /* wie gehabt */
    z-index: 20;                    /* sicher über dem Inhalt */
}

.product-item-small .stock-status {
  display: flex;            /* sicherstellen, dass es ein Flex-Container ist */
  justify-content: center;  /* zentriert Icon und Text horizontal */
  margin-top: 5px;          /* optional: etwas Abstand nach oben */
  width: 100%;              /* damit es die volle Kachel-Breite nutzt */
}


.product-item-small .status-dot {
    width: 8px;
    height: 8px;
}

.product-item-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-image-small {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product-name-small {
    font-size: 1em;
    margin: 5px 0;
}

.product-description-small {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
}

/******************************************
 * Mobile-Navigation (Burger-Menü)
 ******************************************/
 .nav-mobile-topbar {
    display: flex;
    background-color: #005580;
    color: #fff;
    padding: 10px 0;
}

.nav-mobile-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.mobile-menu-left {
    flex: 0 0 auto;
}

.mobile-menu-left button,
.mobile-menu-right button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
}

.nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 100%; /* Menü standardmäßig außerhalb des Bildschirms */
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 3000;
    overflow-y: auto;
    padding-top: 60px; /* Platz für den fixierten Header */
    box-sizing: border-box;
    transition: left 0.3s ease-in-out; /* Weiche Animation für das Öffnen/Schließen */
}

.nav-mobile-overlay.active {
    left: 0;
}

.nav-mobile-overlay.active .nav-mobile-header {
    display: flex; /* Sichtbar nur, wenn das Menü aktiv ist */
    align-items: center;
    justify-content: space-between;
}

.nav-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #003055;
    color: #fff;
    z-index: 3000;
    display: none; /* Standardmäßig ausgeblendet */
    padding: 15px 15px;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-mobile-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.nav-mobile-header button#mobile-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Top Deal Produktkarte innerhalb des Mega-Menüs */
.subcat-topdeal-box .product-item {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 12px;
    display: block;
    text-align: center;
    box-sizing: border-box;
}

.subcat-topdeal-box .product-item .product-image-link,
.subcat-topdeal-box .product-item .image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.subcat-topdeal-box .product-item img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    margin: 0;
}

.subcat-topdeal-box .product-item h3 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #005580;
    line-height: 1.3;
}

.subcat-topdeal-box .product-item h3 a {
    color: inherit;
    text-decoration: none;
}

.subcat-topdeal-box .product-item h3 a:hover {
    text-decoration: underline;
}

.subcat-topdeal-box .product-item .description {
    font-size: 12px;
    color: #4a5568;
    margin-bottom: 10px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.subcat-topdeal-box .product-item .price-container {
    margin-top: 8px;
    gap: 6px;
    justify-content: center;
}

.subcat-topdeal-box .product-item .stock-status,
.subcat-topdeal-box .product-item .variant-info {
    margin-top: 8px;
    font-size: 12px;
    text-align: center;
    justify-content: center;
}

/* Mobile Kategorien Grid - 2 Spalten Layout */
.mobile-cat-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 15px !important;
    list-style: none !important;
    margin: 0 !important;
    background-color: #f5f7fa;
}

.mobile-cat-grid > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-cat-grid > li::before,
.mobile-cat-grid > li::marker {
    content: none !important;
    display: none !important;
}

.mobile-cat-grid .mobile-cat-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    padding: 12px 8px !important;
    width: 100% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    min-height: 130px;
}

.mobile-cat-grid .mobile-cat-btn:hover,
.mobile-cat-grid .mobile-cat-btn:active {
    transform: scale(1.03) !important;
    box-shadow: 0 4px 12px rgba(0,85,128,0.2) !important;
}

.mobile-cat-grid .cat-image-wrap {
    width: 100% !important;
    height: 70px !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f2 100%);
}

.mobile-cat-grid .cat-image-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.mobile-cat-grid .mobile-cat-btn > span {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #003055 !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    line-height: 1.3 !important;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.mobile-other-links {
    padding: 15px;
    background: #fff;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.mobile-other-links ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-other-links li {
    list-style: none !important;
    margin: 0 !important;
}

.mobile-other-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 10px !important;
    border: none !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #005580 0%, #003055 100%) !important;
    box-shadow: 0 2px 6px rgba(0,48,85,0.2) !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.mobile-other-links a:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 4px 10px rgba(0,48,85,0.3) !important;
}

/* Überschreibung für mobile-cat-btn außerhalb des Grids */
.mobile-subcat-list .mobile-cat-btn, 
.mobile-cat-btn:not(.mobile-cat-grid .mobile-cat-btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #003055;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-subcat-list .mobile-cat-btn:hover {
    background-color: #f0f7fa;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.mobile-cat-btn .arrow,
.mobile-other-links a .arrow {
    font-size: 20px;
    color: #005580;
    transition: transform 0.3s ease;
}

.mobile-cat-btn.open .arrow {
    transform: rotate(180deg);
}

.cat-image-wrap {
    width: 100%;
    height: 80px;
    overflow: hidden;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cat-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
}

.mobile-other-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-other-links li {
    margin-bottom: 10px;
}

.mobile-other-links a {
    color: #005580;
    text-decoration: none;
}

.mobile-subcategories {
    display: none; 
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
}

.mobile-subcategories .mobile-subcat-list {
    flex: 1;
}

.mobile-subcategories .mobile-other-links {
    margin-top: auto;
    padding-top: 20px;
}

.subcat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.subcat-header button {
    background: #f0f4f8;
    border: none;
    color: #005580;
    font-size: 16px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.subcat-header button:hover {
    background: #e0e8f0;
}

#mobile-subcat-title {
    margin: 0;
    font-size: 18px;
    color: #003055;
    font-weight: 700;
    flex: 1;
}

#mobile-subcat-title .subcat-title-link {
    color: #003055;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

#mobile-subcat-title .subcat-title-link:hover {
    color: #005580;
    text-decoration: underline;
}

#mobile-subcat-title .subcat-title-link::after {
    content: '→';
    font-size: 14px;
    opacity: 0.7;
}

.mobile-subcat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-subcat-list .mobile-cat-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 16px;
    font-weight: bold;
    color: #005580;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-subcat-list .mobile-cat-btn:hover {
    background-color: #e6f0f5;
}

/* Mobile Cat Button als Link (für Kategorien ohne Sub-Unterkategorien) */
.mobile-subcat-list a.mobile-cat-btn,
.mobile-subcat-list a.mobile-cat-link {
    text-decoration: none;
    color: #005580;
}

.mobile-subcat-list a.mobile-cat-btn:hover,
.mobile-subcat-list a.mobile-cat-link:hover {
    background-color: #e6f0f5;
}

.mobile-subcat-list .cat-name {
    flex: 1;
    text-align: left;
}

.mobile-subcat-list .arrow {
    font-size: 14px;
    color: #003055;
    flex-shrink: 0;
}

.mobile-subcat-list li {
    list-style: none;
    margin-bottom: 10px;
}

.mobile-subcat-list li a {
    color: #333;
    text-decoration: none;
}

.mobile-subcat-list li a:hover {
    color: #005580;
}

/* Sub-Unterkategorien Links (nested) */
.nested-subcat-list {
    list-style: none;
    margin: 0;
    padding: 5px 0 5px 20px;
    background-color: #fafafa;
    border-left: 3px solid #005580;
}

.nested-subcat-list li {
    margin-bottom: 0;
}

.nested-subcat-list li a,
.nested-subcat-list li .mobile-subcat-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nested-subcat-list li:last-child a,
.nested-subcat-list li:last-child .mobile-subcat-link {
    border-bottom: none;
}

.nested-subcat-list li a:hover,
.nested-subcat-list li .mobile-subcat-link:hover {
    background-color: #e6f0f5;
    color: #005580;
}

/* Mobile-Hauptkategorien Überschrift */
.mobile-main-categories {
    padding: 0;
    background-color: #f5f7fa;
}

.mobile-main-categories h2 {
    font-size: 16px;
    color: #003055;
    margin: 0;
    padding: 15px 15px 10px 15px;
    background: #fff;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.mobile-subcat-list ul {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.mobile-subcat-list ul li {
    margin-bottom: 8px;
}

.mobile-subcat-list ul li .mobile-cat-btn {
    padding: 10px;
    font-size: 14px;
    background-color: #f1f8ff;
    border: 1px solid #d0e7f5;
    border-radius: 6px;
    color: #003055;
    width: calc(100% - 20px);
    margin: 5px auto;
}

.mobile-subcat-list ul li .mobile-cat-btn:hover {
    background-color: #e1f2ff;
    border-color: #b3d9f0;
}

/* =======================================
   Responsive Design
   ======================================= */
@media (max-width: 999px) {
    .top-bar .right-info {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar .left-info {
        display: none;
    }
}

/* ---------- Suchleiste mobil ---------- */
.search-mobile {
    display: none;
}

@media (max-width: 999px) {
    .main-header .container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }

    .user-actions a {
        font-size: 0;
        display: flex;
        align-items: center;
    }
    .user-actions a i {
        font-size: 20px;
        margin: 0;
    }

    .cart .cart-text {
        font-size: 14px;
        white-space: nowrap;
    }
    .cart .cart-text::before {
        content: "";
    }
    .cart a i {
        font-size: 24px;
        margin-right: 5px;
    }

    .search-bar {
        width: 100%;
        margin: 10px 0;
        display: none;
    }
    .search-bar.active {
        display: block;
    }
    .search-mobile {
        display: block;
    }
}

/* =======================================
   Hero-Banner / Kategorien / Produkte
   ======================================= */
main {
    padding: 20px 0;
}

.hero-banner {
    position: relative;
    overflow: hidden;
    height: 400px;
    border-radius: 10px;
}

.hero-banner .hero-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
}

.hero-banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-banner p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.hero-slide {
    min-width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-navigation {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-navigation button {
    background-color: rgba(0, 48, 85, 0.8);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.hero-navigation button:hover {
    background-color: rgba(15, 77, 124, 0.8);
}

.btn-primary {
    padding: 12px 30px;
    background-color: #003055;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #00457A;
    color: #fff;
}

.btn-success {
    padding: 12px 30px;
    background-color: #003055;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: #00457A;
    color: #fff;
}

/* ---------- Hero-Banner Mobile Anpassungen ---------- */
@media (max-width: 768px) {
    .hero-banner {
        height: 300px;
        border-radius: 8px;
        margin: 0 10px;
    }
    
    .hero-slide {
        height: 300px;
    }
    
    .hero-banner .hero-content {
        padding: 15px;
        margin: 0 15px;
        max-width: calc(100% - 80px);
        box-sizing: border-box;
    }
    
    .hero-banner h1 {
        font-size: 24px;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .hero-banner p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .hero-banner .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .hero-navigation button {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* ---------- Kategorienübersicht ---------- */
.categories-overview {
    margin-top: 60px;
    margin-bottom: 60px;
}

.categories-overview h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #005580;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1000px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-item {
    position: relative;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-item h3 {
    font-size: 20px;
    margin: 0;
    padding: 10px 20px;
    background-color: rgba(0, 50, 100, 0.7);
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.category-item:hover h3 {
    opacity: 0;
}

.category-item::after {
    content: "";
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 5px;
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item[data-lang="de"]:hover::after {
    content: "Jetzt einkaufen";
    opacity: 1;
}

.category-item[data-lang="en"]:hover::after {
    content: "Shop now";
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 85, 128, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    font-size: 18px;
}

.category-item:hover .overlay {
    opacity: 1;
}

/* ---------- Featured Products / Sonderangebote ---------- */
.featured-products {
    margin-top: 20px;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #005580;
}

.featured-products .products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .featured-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 999px) {
    .nav-mobile-topbar {
      display: block;
    }
  }
  
  /* Ab 1025px (Desktop) ausblenden */
  @media (min-width: 1000px) {
    .nav-mobile-topbar {
      display: none;
    }
  }

@media (min-width: 1000px) {
    .featured-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-item {
    position: relative;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.product-item .bookmark {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8); /* Optional: Hintergrundfarbe für bessere Sichtbarkeit */
    border-radius: 50%;
    padding: 8px;
    transition: background-color 0.3s ease;
    z-index: 15; /* Höher als die Discount-Label */
    text-decoration: none; /* Entfernt die Unterstreichung */
}

.product-item .bookmark i {
    color: #005580;
    font-size: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.product-item .bookmark:hover i {
    color: #003055;
    transform: scale(1.2);
}

.product-item .bookmark.active i {
    color: #003055; /* Beispiel: Farbe ändern, wenn aktiviert */
}

/* Bookmark in Small-Tiles oben rechts platzieren */
.product-item-small .bookmark {
  position: absolute !important;  /* überschreibt evtl. bestehende Regeln */
  top: 5px;                       /* Abstand von oben */
  right: 5px;                     /* Abstand von rechts */
  margin: 0;                      /* entfernt ggf. zentrierende Margins */
  background: rgba(255,255,255,0.8); /* bei Bedarf etwas Hintergrund */
  z-index: 20;                    /* über dem Bild und Label */
}

.product-item img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 5px 0;
}

.product-item .description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.current-price {
    font-size: 20px;
    color: #005580;
    font-weight: bold;
}

.old-price {
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
}

.discount-label {
    position: absolute;
    top: 30px;
    left: 10px;
    background-color: #005580;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 7px 30px;
    transform: rotate(-15deg);
    transform-origin: left;
    z-index: 10;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
}

.discount-label-small {
    position: absolute;
    top: 30px;
    left: 7px;
    background-color: #005580;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 7px 28px;
    transform: rotate(-20deg);
    transform-origin: left;
    z-index: 10;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-radius: 7px;
}

@media (max-width: 999px) {
    .discount-label {
        position: absolute;
        top: 30px;
        left: 7px;
        background-color: #005580;
        color: #fff;
        font-size: 12px;
        font-weight: bold;
        padding: 7px 28px;
        transform: rotate(-20deg);
        transform-origin: left;
        z-index: 10;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        border-radius: 7px;
    }
}

/* ---------- Top Seller ---------- */
.top-seller {
    margin-top: 60px;
}

.top-seller h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #005580;
}

.top-seller .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1100px) {
    .top-seller .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .top-seller .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .top-seller .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* =======================================
   Trennlinien
   ======================================= */
.divider-blue {
    height: 4px;
    background-color: #005580;
    margin: 0;
}

.divider-black {
    height: 2px;
    background-color: #000;
    margin: 20px 0;
}

/* =======================================
   Footer-Bereich
   ======================================= */
.footer-wrapper {
    background-color: #f8f9fa; 
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

footer {
    padding: 0;
    margin: 0;
    background-color: transparent;
}

/* ---------- 4-Spalten-Container ---------- */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 10px;
    color: #333;
}

.footer-section h4 {
    font-size: 20px;
    color: #003055;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p,
.footer-section ul {
    font-size: 16px;
    margin: 0 0 15px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #005580;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-section ul li a:hover {
    color: #003055;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* ---------- Zahlungsarten & Versandarten ---------- */
.footer-payment-shipping {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 0;
    background-color: transparent;
}

.payment-methods,
.shipping-methods {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-methods img,
.shipping-methods img {
    height: 50px;
    transition: transform 0.3s ease;
}

.payment-methods img:hover,
.shipping-methods img:hover {
    transform: scale(1.1);
}

/* ---------- Copyright-Bereich ---------- */
.copyright {
    background-color: #003055;
    color: #fff;
    padding: 10px 15px;
    font-size: 12px;
}

.copyright-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.copyright-container span {
    font-size: 14px;
    white-space: nowrap;
}

.copyright-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.copyright-links a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid transparent;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.copyright-links a:hover {
    color: #fff;
    border-color: #fff;
}

/* ---------- Mobile Anpassungen ---------- */
@media (max-width: 999px) {
    .copyright-container {
        flex-direction: column;
        gap: 10px;
    }

    .copyright-links {
        justify-content: center;
    }

    .copyright-links a {
        display: block;
        text-align: center;
        padding: 10px;
        margin: 5px 0;
        border-radius: 5px;
        font-size: 14px;
        background-color: #fff;
        color: #003055;
    }

    .copyright-links a:hover {
        background-color: #003055;
        color: #fff;
    }

    .footer-payment-shipping {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
    }

    .payment-methods,
    .shipping-methods {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .payment-methods img,
    .shipping-methods img {
        height: 40px;
    }
}

/* =======================================
   Markenlogos-Leiste
   ======================================= */
.brand-slider {
    position: relative;
    overflow: hidden;
    margin: 40px 0;
    background-color: #fff;
    padding: 10px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.brand-slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.brand-slide {
    flex: 0 0 auto;
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    padding: 5px;
}

.brand-slide img {
    max-width: 80%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out, transform 0.3s ease;
}

.brand-slide img:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}

.brand-slide-h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #005580;
}

/* Slider-Pfeile */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 48, 85, 0.8);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 20;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(15, 77, 124, 0.8);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

@media (max-width: 1000px) {
    .brand-slide {
        width: 33.33%;
    }
}

@media (max-width: 768px) {
    .brand-slide {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .brand-slide {
        width: 100%;
    }
}

/* Scroll-to-Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #003055;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.8;
    z-index: 1000;
}

#scrollTopBtn i {
    font-size: 24px;
}

#scrollTopBtn:hover {
    opacity: 1;
    transform: scale(1.1);
}

#scrollTopBtn:active {
    transform: scale(0.95);
}

/* =======================================
   Language Switcher
   ======================================= */
   .language-switcher {
    order: 3;
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.language-switcher .lang-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.lang-btn img {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.lang-btn:hover img {
    transform: scale(1.1);
}

.lang-dropdown-header {
    padding: 10px 15px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #ddd;
    cursor: default; /* Verhindert, dass der Cursor wie ein Link aussieht */
}

.lang-dropdown-header:hover {
    background-color: transparent; /* Keine Hover-Effekte für die Überschrift */
}

.language-switcher .lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    min-width: 170px; /* Optional: Mindestbreite für das Dropdown */
}

.lang-dropdown li {
    list-style: none;
}

.lang-dropdown li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.lang-dropdown li a:hover {
    background-color: #f1f1f1;
}

.lang-dropdown li a img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 3px;
}

/* Anzeige des Dropdowns bei aktivem Status */
.language-switcher.active .lang-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Hover-Effekt für Desktop */
@media (min-width: 1000px) {
    .language-switcher:hover .lang-dropdown {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Anpassungen */
@media (max-width: 1000px) {
    .language-switcher {
        order: 2; /* Zwischen Logo und Anmelden */
        margin-left: 10px; /* Optional: Abstand */
    }
    .search-bar {
        order: 3;
        flex: 0 0 100%; /* Suchleiste nimmt volle Breite ein */
        margin: 10px 0;
    }
    .user-actions {
        order: 4;
    }

    .wishlist {
        order: 5;
    }

    .cart {
        order: 6;
    }
    
    /* Optional: Verstecken des Textes auf kleineren Bildschirmen */
    .language-switcher .lang-btn .lang-text {
        display: none;
    }
}

/* --- Produkt-Galerie spezifisch --- */

/* Versteckt die Thumbnails-Leiste standardmäßig auf Desktop */
.product-item .thumbnails-container {
    position: absolute;        /* oder relative, wenn du es anders positionieren möchtest */
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;            /* Wird erst bei Hover angezeigt */
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px;
    box-sizing: border-box;
    text-align: center;
    z-index: 5;
}

/* Thumbnails anordnen (innerhalb der Leiste) */
.product-item .thumbnails-container .thumbnail {
    width: 50px;               /* ggf. anpassen */
    height: 50px;              /* ggf. anpassen */
    object-fit: cover;
    margin: 0 3px;
    cursor: pointer;
    opacity: 0.7;              /* leichte Transparenz, wenn nicht active */
    transition: opacity 0.3s, border-color 0.3s;
    border: 1px solid #ccc;    /* optional */
    border-radius: 3px;        /* optional */
}
.product-item .thumbnails-container .thumbnail.active {
    opacity: 1;
    border-color: #005580;     /* Hervorheben des aktiven Bildes */
}

/* Hover-Effekt für Desktop: Blende die Thumbnails ein */
@media (hover: hover) and (pointer: fine) { /* Nur auf "klassischen" Desktop-Geräten */
    .product-item:hover .thumbnails-container {
        display: block;
    }
}

/* Für mobile Darstellung anstatt Hover:
   machen wir die Thumbnails standardmäßig sichtbar und horizontal scrollbar */
@media (max-width: 999px) {
    .product-item {
        position: relative; /* sicherstellen, dass position-Kontext stimmt */
    }

    /* Desktop Thumbnails ausblenden auf Mobile */
    .product-item .thumbnails-container {
        display: none;
    }
}

/* Für das Hauptbild ggf. Position anpassen */
.product-item .image-container {
    position: relative; /* falls du Overlays oder so zeigen willst */
}

/* Hauptbild */
.product-item .product-image {
    width: 100%;
    max-height: 350px;         /* Beispielwert */
    object-fit: cover;
}

/* Desktop vs Mobile Bild-Container */
.desktop-image-link {
    display: block; /* Desktop: sichtbar */
}

.mobile-image-slider {
    display: none;  /* ausgeblendet, bis wir auf mobile schalten */
}

/* -- Bei kleineren Geräten (max. 1024px) wechseln wir die Sichtbarkeit -- */
@media (max-width: 999px) {
    .desktop-image-link {
        display: block;       /* Desktop-Variante auch auf mobil anzeigen (kein mobiler Slider vorhanden) */
    }

    .mobile-image-slider {
        display: block;       /* Mobile-Variante aktivieren */

        /* Einfacher Horizontal-Scroll => Swipe-Effekt */
        width: 100%;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch; /* Smoother Scrolling auf iOS */
        scroll-snap-type: x mandatory;     /* Optionales „Einrasten“ beim Scrollen */
        white-space: nowrap;               /* Bilder in einer Reihe */
    }

    .mobile-image-slider .slide-track {
        display: inline-flex;
    }

    .mobile-image-slider .slide {
        flex: 0 0 100%;        /* Jede Slide = Bildschirmbreite */
        scroll-snap-align: center;
        position: relative;
        text-align: center;    /* optional */
    }

    .mobile-image-slider .slide img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;     /* je nach Wunsch: cover, contain etc. */
    }

    /* Thumbnails ausblenden auf Mobile */
    .product-item .thumbnails-container {
        display: none;
    }
}

/* Scrollbar ausblenden für mobile Image Slider */
.mobile-image-slider {
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE, Edge */
}
.mobile-image-slider::-webkit-scrollbar {
    display: none;               /* Chrome, Safari */
}

/* --- Zusätzliche Stile für Thumbnails bei Desktop --- */

/* Optional: Positionierung und Styling der Thumbnails-Leiste */
.product-item .thumbnails-container {
    display: none; /* Bereits in vorherigem CSS definiert */
    /* Beispielpositionierung */
    bottom: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 5px;
}

/* Optional: Hover-Effekt für Thumbnails */
.product-item .thumbnails-container .thumbnail:hover {
    opacity: 1;
}

/* Optional: Cursor ändern beim Hover über Thumbnails */
.product-item .thumbnails-container .thumbnail:hover {
    cursor: pointer;
}

.image-container,
.mobile-image-slider .slide {
    height: 350px; /* Beispielwert, passe ihn nach Bedarf an */
    overflow: hidden;
    position: relative;
}

/* Bilder im Desktop-Bild-Container */
.desktop-image-link .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild füllt den Container ohne Verzerrung */
    transition: opacity 0.3s ease-in-out;
}

.swiper-slide {
    width: auto !important; /* oder eine feste Breite, z.B. 300px */
    max-width: 100%;
}

/* Bilder im mobilen Slider */
.mobile-image-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild füllt den Container ohne Verzerrung */
    display: block;
}

/* --- Swiper-Pagination-Dots --- */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #005580;
}

/* Optional: Abstand zwischen den Dots */
.swiper-pagination {
    bottom: 10px !important; /* Position der Dots anpassen */
}

.mobile-image-slider.swiper-container {
    position: relative;
    padding-bottom: 30px; /* Platz für die Dots */
}

/* Lagerstandsanzeige - Stil für den Text */
.stock-status {
    display: flex;
    align-items: center;
    gap: 8px; /* Abstand zwischen Text und Punkt */
    font-size: 14px; /* Schriftgröße */
    margin-top: 10px; /* Abstand nach oben */
    font-weight: bold;
}

/* Lagerstandsanzeige - Allgemeiner Stil für die Punkte */
.stock-status .status-dot {
    width: 12px; /* Größe des Punkts */
    height: 12px; /* Größe des Punkts */
    border-radius: 50%; /* Macht den Punkt rund */
    display: inline-block;
}

/* Farben der Punkte */
.status-dot.green {
    background-color: #28a745; /* Grün */
}

.status-dot.orange {
    background-color: #ffc107; /* Orange */
}

.status-dot.red {
    background-color: #dc3545; /* Rot */
}


/* wishlist toast */
.wishlist-toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: #4caf50;
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: .25rem;
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  z-index: 10000;
}
.wishlist-toast.error {
  background: #e53935;
}
.wishlist-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================
   Cart Hover Popup
   ========================================== */
.cart {
    position: relative;
}

.cart-popup {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

#cart-container:hover .cart-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-popup-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.cart-popup-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cart-popup-items {
    max-height: 320px;
    overflow-y: auto;
}

.cart-popup-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.cart-popup-item:hover {
    background-color: #f8f9fa;
}

.cart-popup-item:last-child {
    border-bottom: none;
}

.cart-popup-item-image {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    flex-shrink: 0;
}

.cart-popup-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: opacity 0.2s ease;
}

.cart-popup-item-image a:hover img {
    opacity: 0.8;
}

.cart-popup-item-details {
    flex: 1;
    min-width: 0;
}

.cart-popup-item-name {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-popup-item-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-popup-item-name a:hover {
    color: #005580;
    text-decoration: none;
}

.cart-popup-item-variant {
    font-size: 11px;
    color: #666;
    margin-bottom: 3px;
    font-style: italic;
}

.cart-popup-item-sku {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-bottom: 3px;
}

.cart-popup-item-quantity {
    font-size: 12px;
    color: #888;
}

.cart-popup-item-price {
    font-weight: 600;
    font-size: 14px;
    color: #005580;
    margin-left: 12px;
    flex-shrink: 0;
}

.cart-popup-more {
    padding: 12px 20px;
    text-align: center;
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.cart-popup-footer {
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.cart-popup-total {
    margin-bottom: 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.cart-popup-button {
    display: block;
    width: fit-content;
    background: #005580;
    color: white !important;
    text-align: center;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    margin: 0 auto;
}

.cart-popup-button:hover {
    background: #003d5e;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 85, 128, 0.3);
}

.cart-popup-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.cart-popup-empty i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.cart-popup-empty p {
    margin: 0;
    font-size: 14px;
}

/* =======================================
   Mobile Product Items - 2 Spalten Layout
   ======================================= */
@media (max-width: 480px) {
    .product-item {
        padding: 10px;
    }
    
    .product-item h3 {
        font-size: 14px;
        margin: 5px 0;
    }
    
    .product-item .description {
        display: none;
    }
    
    .product-item .current-price {
        font-size: 14px;
    }
    
    .product-item .old-price {
        font-size: 11px;
    }
    
    .product-item .stock-status {
        font-size: 11px;
    }
    
    .product-item .bookmark {
        padding: 5px;
        top: 5px;
        right: 5px;
    }
    
    .product-item .bookmark i {
        font-size: 16px;
    }
    
    .product-item .discount-label {
        font-size: 12px;
        top: 20px;
        left: 5px;
        padding: 3px 6px;
    }
    
    .image-container,
    .mobile-image-slider .slide {
        height: 150px;
    }
    
    .product-meta {
        display: none;
    }
}

/* Mobile: Popup ausblenden */
@media (max-width: 768px) {
    .cart-popup {
        display: none;
    }
}

/* =======================================
   Mobile Top-Seller Slider im Menu
   ======================================= */
.mobile-topseller-section {
    padding: 15px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.mobile-topseller-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #003055;
    margin: 0 0 12px 0;
}

.mobile-topseller-slider {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-topseller-slider::-webkit-scrollbar {
    display: none;
}

.mobile-topseller-track {
    display: flex;
    gap: 12px;
    padding-bottom: 5px;
}

/* Produktkarten im Mobile Top-Seller Slider */
.mobile-topseller-track .product-item-small {
    flex: 0 0 140px;
    min-width: 140px;
    max-width: 140px;
    font-size: 1em;
}

.mobile-topseller-track .product-item-small .product-image-small {
    height: 100px;
    object-fit: cover;
}

.mobile-topseller-track .product-item-small .product-name-small {
    font-size: 11px;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.mobile-topseller-track .product-item-small .price-container {
    margin-top: auto;
}

.mobile-topseller-track .product-item-small .current-price {
    font-size: 12px;
}

.mobile-topseller-track .product-item-small .stock-status {
    display: none;
}

.mobile-topseller-track .product-item-small .bookmark {
    display: none;
}

.mobile-topseller-track .product-item-small .discount-label-small {
    font-size: 10px;
    top: 5px;
    left: 2px;
    padding: 2px 4px;
}
