/* Generelles Layout */
body {
    background-color: #ffffff !important; /* Reinweiß */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.kfz-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
}

/* Top Bar */
.top-bar {
    border-bottom: 1px solid #e5e5e5;
    padding: 4px 0;
    color: #333;
}
.greeting a {
    color: #0053a0;
    text-decoration: underline;
}
.nav-link-top {
    color: #333;
    margin-left: 15px;
    text-decoration: none;
}
.nav-link-top:hover {
    color: #0053a0;
}

/* --- Main Header & Suche (Finaler Schliff) --- */

/* 1. Header Container */
.kfz-header {
    background-color: #ffffff;
    border-bottom: none !important; /* Graue Linie unten entfernt */
    font-size: 13px;
}

.main-header {
    background-color: #fff;
    padding-top: 20px !important;    /* Mehr Abstand nach oben */
    padding-bottom: 20px !important; /* Mehr Abstand nach unten (sieht luftiger aus) */
}

/* 2. Logo Anpassungen */
.navbar-brand {
    margin-right: 15px !important; /* Abstand zum "Stöbern" verkleinert (war vorher viel größer) */
    padding: 0;
}
.navbar-brand img {
    max-height: 48px !important; /* Logo-Größe feinjustiert */
}
.text-primary {
    color: #0053a0 !important;
}

/* 3. Suchleiste Container */
.search-bar-container {
    border: 2px solid #000;
    border-radius: 999px;
    background-color: #fff;
    overflow: hidden;
    height: 48px;
}

/* Lupe Icon */
.search-icon {
    font-size: 16px;
    color: #777;
    padding-right: 10px;
}

/* Das Eingabefeld */
.search-input {
    border: none !important;
    box-shadow: none !important;
    height: 100%;
    font-size: 16px;
    padding-left: 0;
}

/* Trennlinie */
.search-divider {
    width: 1px;
    height: 60%;
    background-color: #ccc;
    margin: 0 10px;
}

/* Dropdown */
.search-select {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent;
    height: 100%;
    width: auto;
    min-width: 140px;
    font-size: 14px;
    color: #333;
}

/* 4. Der separate Button */
.search-button {
    background-color: #3665f3 !important;
    border: none !important;
    border-radius: 999px !important;
    height: 48px;
    padding: 0 40px;
    font-weight: bold;
    font-size: 16px;
    min-width: 120px;
}

.search-button:hover {
    background-color: #2b50c5 !important;
}

.text-primary {
    color: #0053a0 !important;
}

.page_inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}  
/* "Stöbern" Text kleiner und kompakter */
.dropdown a#browseDropdown {
    font-size: 12px !important;  /* Deutlich kleiner */
    line-height: 1.1 !important; /* Zeilenabstand verringern */
    color: #555 !important;      /* Etwas grauer, wie bei eBay */
    font-weight: 500;
}

/* Dropdown Menü optisch anpassen */
.dropdown-menu {
    border-radius: 0;
    margin-top: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: none;
}
.dropdown-item {
    font-size: 13px;
    padding: 8px 20px;
}
.dropdown-item:hover {
    background-color: #f0f0f0;
}
/* --- Fix für Stöbern-Menü --- */

/* 1. Menü beim Drüberfahren (Hover) anzeigen */
.dropdown:hover > .dropdown-menu {
    display: block;
}

/* 2. Sicherstellen, dass das Menü ganz oben liegt (nicht verdeckt wird) */
.dropdown-menu {
    z-index: 9999 !important;
    margin-top: -2px; /* Lücke zum Button schließen */
    border-radius: 0 0 4px 4px;
    border-top: 2px solid #3665f3; /* Schicker blauer Strich oben */
}

/* 3. Pfeil drehen, wenn Menü offen ist (netter Effekt) */
.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.2s;
}
/* Links in der Verkäufer-Leiste */
.seller-actions a:hover {
    color: #0053a0 !important; /* eBay Blau beim Drüberfahren */
    text-decoration: underline !important;
}
/* --- Kategorie Toggle Button (Fischauge & Hover) --- */

.btn-category-toggle {
    border: 1px solid #ccc;   /* Feiner Rahmen */
    background-color: #fff;   /* Standard: Weiß */
    color: #333;
    border-radius: 999px;     /* Maximale Rundung ("Fischauge") */
    padding: 10px 24px;       /* Etwas größerer Klickbereich */
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s, border-color 0.2s;
    outline: none !important;
    box-shadow: none !important;
}

/* Hover-Effekt: Wenn man mit der Maus drauf geht -> Grau */
.btn-category-toggle:hover {
    background-color: #e5e5e5;
    border-color: #bbb;
    color: #000;
}

/* Aktiver Zustand: Wenn Menü offen ist -> Grau bleiben */
.btn-category-toggle.active {
    background-color: #e5e5e5;
    border-color: #999;
    color: #000;
}

/* Icon Abstand */
.btn-category-toggle i {
    margin-right: 8px;
}

/* --- Sidebar / Kategorien (Finaler eBay Style) --- */

.sidebar-heading {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #000 !important;
    margin-bottom: 25px !important;
    padding-left: 15px !important;
    display: block !important;
}

.category-list li {
    border: none !important;
}

/* Die Links: Schwarz, kein Unterstrich, viel Platz */
.category-list li a {
    display: block !important;
    padding: 14px 15px !important;  /* Mehr vertikaler Abstand für Luftigkeit */
    color: #000 !important;         /* Schwarz erzwingen */
    text-decoration: none !important;
    font-size: 15px !important;
    background-color: transparent !important;
    transition: background-color 0.2s !important;
}

/* Hover-Effekt: Hellgrauer Hintergrund wie im Wunsch-Design */
.category-list li a:hover {
    background-color: #f5f5f5 !important;
    color: #000 !important;
    text-decoration: none !important;
}

/* Fischaugen-Button (Pille) Optimierung */
.btn-category-toggle {
    border-radius: 999px !important; /* Maximale Rundung */
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    padding: 10px 25px !important;
}

.btn-category-toggle:hover, .btn-category-toggle.active {
    background-color: #e5e5e5 !important;
}

/* --- FORCE DESIGN FIX --- */

/* 1. Altes Menü "Ergebnisse anzeigen für" komplett löschen */
.side_categories, .breadcrumb, .page-header h1 {
    display: none !important;
}

/* 2. Unsere neue Sidebar-Überschrift schwarz und fett */
.sidebar-heading {
    display: block !important;
    color: #000 !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    margin-bottom: 20px !important;
}

/* 3. Kategorien-Links: Schwarz erzwingen! */
.category-list li a {
    color: #000 !important;
    font-size: 15px !important;
    padding: 12px 15px !important;
    text-decoration: none !important;
}

.category-list li a:hover {
    background-color: #f5f5f5 !important;
    font-weight: 600 !important;
}

/* =========================================
   FINALER DESIGN FIX (LINIEN & PRODUKTE)
   ========================================= */

/* --- 1. GRAUE LINIEN ENTFERNEN --- */

/* Entfernt die Linie 1 (Horizontal unter Header/Kategorien) */
.page-header, 
.navbar, 
.container-fluid, 
header, 
nav {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Entfernt die Linie 2 (Vertikal neben dem Menü) */
#sidebarCol, 
aside, 
.col-md-3 {
    border-right: none !important;
    background-color: transparent !important;
}

/* Entfernt Linien über den Produkten */
.sub-header, 
.content-header, 
.sorting {
    border: none !important;
    border-bottom: none !important;
}

/* Entfernt ALLE Trennlinien (hr) im Shop */
hr {
    display: none !important;
    border: none !important;
}

/* --- FINAL FIX: EBAY LOOK (BILDER & TEXT) --- */

/* 1. LINIEN ENTFERNEN (Links & Oben) */
#sidebarCol, aside, .col-md-3 {
    border: none !important;
    border-right: none !important;
    background-color: transparent !important;
}

.page-header, .sub-header, .container-fluid, nav {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* 2. DIE KARTE */
.product_pod {
    background-color: #fff !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 40px !important;
    width: 100%;
}

/* 3. BILDER (Groß & Mittig) */
.product_pod .image_container {
    background-color: #fff !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important; /* Quadratisch */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
    overflow: hidden !important;
    position: relative;
    border: 1px solid #f0f0f0 !important; /* Ganz feiner Rahmen wie bei eBay */
    border-radius: 8px !important;
}

.product_pod .image_container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Bild passt rein, nichts abgeschnitten */
    padding: 5px !important;        /* Kleiner Abstand zum Rand */
}

/* Herz Icon */
.wishlist-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    color: #333;
}

/* 4. SCHRIFT & TITEL (Sichtbar machen!) */
.product_info {
    padding: 0 5px !important;
}

.product-title {
    display: block !important;      /* Sichtbarkeit erzwingen */
    opacity: 1 !important;
    margin: 5px 0 5px 0 !important;
    height: 40px !important;        /* Platz für 2 Zeilen */
    overflow: hidden !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
    text-align: left !important;
}

.product-title a {
    color: #111 !important;         /* SCHWARZ */
    text-decoration: none !important;
    display: block !important;
}

.product-title a:hover {
    text-decoration: underline !important;
}

/* 5. PREIS */
.product_price {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 5px !important;
}

.price_color {
    font-size: 18px !important;
    font-weight: 700 !important; /* Fett */
    color: #000 !important;      /* Schwarz */
    display: block !important;
}

.menu-dots {
    color: #888;
    cursor: pointer;
}

/* 6. Button weg */
.btn-add-to-basket, .instock, .availability {
    display: none !important;
}
