/* =========================================
   KFZ-Store – Custom Theme (Django Oscar / Bootstrap 4)
   Clean + stable:
   - Header (Top-Bar + Suche)
   - Store Hero + Seller Panel + Nav
   - Sidebar Kategorien (toggle)
   - Produktkarten (kfz-card) + stabiles Grid (4/3)
   - Pagination (kfz-pager)
   - Footer (kfz-footer-simple)
   ========================================= */

/* -----------------------------
   DESIGN TOKENS / SCHALTER
   ----------------------------- */
:root{
  /* Brand */
  --brand-blue:#3665f3;
  --link-blue:#0053a0;

  /* Base */
  --text:#111;
  --muted:#666;
  --line:#eaeaea;
  --bg:#ffffff;

  /* Layout */
  --container:1270px;

  /* Cards */
  --card-bg:#fff;
  --card-border:#ffffff;     /* wenn du einen feinen Rand willst: #e6e6e6 */
  --card-radius:16px;
  --card-shadow:0 10px 25px rgba(0,0,0,.06);
  --card-shadow-hover:0 15px 30px rgba(0,0,0,.10);

  /* Produkt-Grid (wie eBay) */
  --grid-gap-x:0px;         /* horizontaler Abstand */
  --grid-gap-y:0px;         /* vertikaler Abstand */
  --img-h:300px;             /* Bildhöhe (300 = eBay-like) */

  /* Typo Produkt */
  --title-size:15px;         /* Titel größer/kleiner */
  --title-lines:2;           /* 2 oder 3 */
  --price-size:18px;
}

*{ box-sizing:border-box; }

body{
  background:var(--bg) !important;
  font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
  color:var(--text);
}

/* -----------------------------
   CONTAINER
   ----------------------------- */
.page_inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 15px;
}

/* Oscar cleanup */
ul.breadcrumb{ display:none !important; margin:0 !important; padding:0 !important; }
.page-header,.sub-header,hr{ border:none !important; box-shadow:none !important; }
#content_inner{ padding-top:0 !important; }
.container-fluid.page,.page_inner{ padding-top:6px !important; }

/* -----------------------------
   TOP BAR
   ----------------------------- */
.top-bar{
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:4px 0;
  font-size:13px;
  color:#333;
}
.top-bar .greeting a{
  color:var(--link-blue);
  text-decoration:underline;
}
.top-bar a{ color:#333; text-decoration:none; }
.top-bar a:hover{ color:var(--link-blue); text-decoration:underline; }

/* -----------------------------
   MAIN HEADER (Logo + Suche)
   ----------------------------- */
.main-header{
  background:#fff;
  padding:10px 0 10px 0;
}
.header-logo img{
  max-height:64px;
  width:auto;
  display:block;
}

/* Suche (globale Suche) */
.search-bar-container{
  border:2px solid #000;
  border-radius:999px;
  background:#fff;
  overflow:hidden;
  height:48px;
}
.search-icon{ font-size:16px; color:#777; }
.search-input{
  border:none !important;
  box-shadow:none !important;
  height:100%;
  font-size:16px;
  background:transparent !important;
}
.search-input:focus{ outline:none !important; box-shadow:none !important; }
.search-divider{
  width:1px;
  height:60%;
  background:#d8d8d8;
  margin:0 10px;
}
.search-select{
  border:none !important;
  box-shadow:none !important;
  background:transparent !important;
  height:100%;
  min-width:170px;
  font-size:14px;
  color:#333;
}
.search-select:focus{ outline:none !important; box-shadow:none !important; }
.search-button{
  background:var(--brand-blue) !important;
  border:none !important;
  border-radius:999px !important;
  height:48px;
  padding:0 40px;
  font-weight:700;
  font-size:16px;
  min-width:120px;
}
.search-button:hover{ background:#2b50c5 !important; }

/* -----------------------------
   STORE HERO (Banner – ohne Frame)
   ----------------------------- */
.store-hero{ margin-top:8px; }

.store-hero-shell{
  background:transparent !important;
  border-radius:0 !important;
  padding:0 !important;
}
.store-hero-card{
  background:transparent !important;
  border:none !important;
  border-radius:0 !important;
  overflow:visible !important;
  box-shadow:none !important;
}
.store-banner{
  width:100%;
  height:auto;
  display:block;
  border:none !important;
  box-shadow:none !important;
  border-radius:16px;
}

/* -----------------------------
   SELLER PANEL
   ----------------------------- */
.seller-panel{
  margin-top:14px;
  background:#f6f6f6;
  border:1px solid #efefef;
  border-radius:16px;
  box-shadow:none;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.seller-left{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:260px;
}
.seller-avatar{
  width:84px;
  height:84px;
  border-radius:50%;
  background:#efefef;
  display:grid;
  place-items:center;
  font-weight:700;
  color:#111;
  text-align:center;
  font-size:12px;
}
.seller-title{
  margin:0 0 6px 0;
  font-size:30px;
  font-weight:800;
  letter-spacing:-0.3px;
}
.seller-meta{
  font-size:13px;
  color:var(--muted);
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}
.seller-meta strong{ color:#111; font-weight:800; }

/* Shop-Suche rechts */
.store-search{ flex:1; display:flex; justify-content:flex-end; }
.store-search .store-search-wrap{ position:relative; width:min(520px, 100%); }
.store-search .store-search-icon{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  color:#777;
  font-size:14px;
}
.store-search .store-search-input{
  width:100%;
  border:1px solid #dcdcdc;
  border-radius:999px;
  height:44px;
  padding:0 18px 0 44px;
  font-size:15px;
  outline:none;
  background:#fff;
}

/* -----------------------------
   STORE NAV
   ----------------------------- */
.store-nav{
  margin-top:12px;
  padding:10px 0 6px 0;
}
.store-nav .nav{ gap:6px; }

.btn-category-toggle{
  border:1px solid #cfcfcf !important;
  background:#fff !important;
  color:#111 !important;
  border-radius:999px !important;
  padding:10px 18px !important;
  font-size:14px;
  font-weight:700;
  box-shadow:none !important;
}
.btn-category-toggle:hover,
.btn-category-toggle.active{
  background:#ededed !important;
}

.nav-item-link{
  color:#111 !important;
  font-size:14px;
  padding:10px 12px !important;
  border-radius:10px;
  position:relative;
  font-weight:600;
}
.nav-item-link:hover{
  color:#111 !important;
  text-decoration:none;
}
.nav-item-link.is-active::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:4px;
  height:3px;
  border-radius:2px;
  background:#111;
}

/* -----------------------------
   SIDEBAR Kategorien
   ----------------------------- */
#sidebarCol{ border:none !important; background:transparent !important; }
.sidebar-heading{
  font-family:system-ui, -apple-system, sans-serif !important;
  font-size:24px !important;
  font-weight:800 !important;
  color:#111 !important;
  margin:0 0 16px 0 !important;
}
.sidebar-cats a{
  display:block;
  padding:12px 12px;
  color:#111;
  text-decoration:none;
  border-radius:10px;
}
.sidebar-cats a:hover{ background:#f5f5f5; }

/* =========================================
   PRODUCTS (kfz-card) + STABILES GRID (4 / 3)
   ========================================= */

/* Oscar wrapper neutralisieren */
.product_pod{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  padding:0 !important;
}

/* ✅ Grid-Container robust (Oscar nutzt row + ol/ul.products) */
#contentCol .product_list .row,
#contentCol .row.products,
#contentCol ol.products,
#contentCol ul.products{
  display:grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;  /* 4 wenn Sidebar zu */
  gap: var(--grid-gap-y) var(--grid-gap-x) !important;
  align-items:start !important;
  margin:0 !important;          /* wichtig gegen .row */
  padding:0 !important;
}

/* Sidebar offen => 3 */
#sidebarCol:not(.d-none) ~ #contentCol .product_list .row,
#sidebarCol:not(.d-none) ~ #contentCol .row.products,
#sidebarCol:not(.d-none) ~ #contentCol ol.products,
#sidebarCol:not(.d-none) ~ #contentCol ul.products{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Kinder neutralisieren (Bootstrap cols / li) */
#contentCol .product_list .row > *,
#contentCol .row.products > *,
#contentCol ol.products > li,
#contentCol ul.products > li{
  width:auto !important;
  max-width:none !important;
  flex:none !important;
  min-width:0 !important;
}

/* Card */
.kfz-card{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;

  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:var(--card-radius);
  box-shadow:var(--card-shadow);
  overflow:hidden;
  height:100%;
  transition:transform .18s ease, box-shadow .18s ease;

  text-align:left !important;
}
.kfz-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

/* Media – eBay-like 300x300 über Höhe */
.kfz-card__media{
  position:relative;
  display:block;
  width:100% !important;
  height:var(--img-h) !important;
  aspect-ratio:auto !important;
  background:#f3f3f3;
  overflow:hidden;
}
.kfz-card__media img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block;
  transform:scale(1.02);
  transition:transform .25s ease;
}
.kfz-card:hover .kfz-card__media img{
  transform:scale(1.05);
}

/* Heart
.kfz-card__fav{
  position:absolute;
  top:10px;
  right:10px;
  width:36px;
  height:36px;
  border-radius:999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  display:grid;
  place-items:center;
  cursor:pointer;
}
.kfz-card__fav svg{
  width:18px;
  height:18px;
  color:#111;
}
.kfz-card__fav:hover{
  background:#fff;
  border-color: rgba(0,0,0,.14);
}
*/
/* Body */
.kfz-card__body{
  padding:10px 10px 12px;
  text-align:left !important;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}
.kfz-card__title{
  margin:0;
  width:100%;
  font-size:var(--title-size);
  line-height:1.25;
  font-weight:800;

  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp: var(--title-lines);
  overflow:hidden;

  min-height: calc(var(--title-lines) * 18px);
}
.kfz-card__title a{
  color:#111;
  text-decoration:none;
}
.kfz-card__title a:hover{ text-decoration:underline; }

.kfz-card__price{
  width:100%;
  display:flex;
  align-items:baseline;
  gap:8px;
}
.kfz-card__price-value{
  font-size:var(--price-size);
  font-weight:800;
  color:#111;
}

/* Responsive */
@media (max-width: 1200px){
  #contentCol .product_list .row,
  #contentCol .row.products,
  #contentCol ol.products,
  #contentCol ul.products{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #sidebarCol:not(.d-none) ~ #contentCol .product_list .row,
  #sidebarCol:not(.d-none) ~ #contentCol .row.products,
  #sidebarCol:not(.d-none) ~ #contentCol ol.products,
  #sidebarCol:not(.d-none) ~ #contentCol ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 768px){
  #contentCol .product_list .row,
  #contentCol .row.products,
  #contentCol ol.products,
  #contentCol ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 480px){
  #contentCol .product_list .row,
  #contentCol .row.products,
  #contentCol ol.products,
  #contentCol ul.products{
    grid-template-columns: 1fr !important;
  }
}

/* =========================================
   PAGINATION (kfz-pager)
   ========================================= */

/* Footer direkt danach */
.kfz-footer-simple{ margin-top: 0 !important; }

/* runde Leiste */
.kfz-pager{
  width:100%;
  max-width:var(--container);
  margin:14px auto 0;
  padding:14px 18px;

  background:#fff !important;
  border:0px solid var(--line) !important;
  border-radius:16px !important;
  box-shadow:none !important;

  display:grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items:center !important;
  column-gap:18px !important;
}

/* Pagination mittig */
.kfz-pager .kfz-pagination{
  grid-column:2;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:16px !important;
}

/* Dropdown rechts */
.kfz-pager .kfz-per-page{
  grid-column:3;
  justify-self:end;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
}

/* Zahlen */
.kfz-pager .kfz-pagination .page-link{
  border:none !important;
  background:transparent !important;
  box-shadow:none !important;

  color:#111 !important;
  font-weight:700 !important;
  font-size:18px !important;
  line-height:1 !important;

  padding:8px 10px !important;
}

/* aktiv unterstrich */
.kfz-pager .kfz-pagination .page-item.active .page-link{
  position:relative !important;
}
.kfz-pager .kfz-pagination .page-item.active .page-link::after{
  content:"" !important;
  position:absolute !important;
  left:6px !important;
  right:6px !important;
  bottom:-10px !important;
  height:4px !important;
  border-radius:3px !important;
  background:#111 !important;
}

/* Ellipsis */
.kfz-pager .kfz-pagination .page-item.disabled .page-link{
  opacity:.35 !important;
}

/* Pfeile */
.kfz-pager .kfz-pagination .page-link.kfz-page-arrow{
  width:56px !important;
  height:56px !important;
  padding:5 !important;

  display:grid !important;
  place-items:center !important;

  border-radius:999px !important;
  border:none !important;
  box-shadow:none !important;

  background:#ffffff !important;
  color:#111 !important;
  font-size:36px !important;
  font-weight:900 !important;
  line-height:1 !important;
}
.kfz-pager .kfz-pagination a.page-link.kfz-page-arrow:hover{
  background:#ffffff !important;
  color:#111 !important;
  text-decoration:none !important;
}
.kfz-pager .kfz-pagination .page-item.disabled .page-link.kfz-page-arrow{
  opacity:.45 !important;
}

/* Dropdown */
.kfz-pager .kfz-per-page__label{
  margin:0 !important;
  font-size:14px !important;
  color:#111 !important;
  font-weight:700 !important;
}
.kfz-pager .kfz-per-page__select{
  border:2px solid var(--brand-blue) !important;
  border-radius:999px !important;
  background:#fff !important;

  height:46px !important;
  padding:0 14px !important;

  color:#111 !important;
  font-weight:700 !important;
  font-size:15px !important;

  outline:none !important;
  box-shadow:none !important;
}

/* Mobile: Dropdown unter Pagination */
@media (max-width: 768px){
  .kfz-pager{
    grid-template-columns:1fr !important;
    row-gap:12px !important;
    justify-items:center !important;
  }
  .kfz-pager .kfz-pagination{ grid-column:1; }
  .kfz-pager .kfz-per-page{ grid-column:1; justify-self:center; }
}

/* =========================================
   FOOTER
   ========================================= */

/* Footer cleanup (Oscar footer nutzt oft Listen) */
footer ul,
.footer ul {
  list-style:none !important;
  padding-left:0 !important;
  margin-left:0 !important;
}
footer li,
.footer li { margin:6px 0; }
footer a,
.footer a { color:var(--link-blue); }
footer a:hover,
.footer a:hover { text-decoration: underline; }

.kfz-footer-simple{
  background:#fff;
  border-top:1px solid var(--line);
  padding:28px 0;
}
.kfz-footer-simple__inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:14px;
}
.kfz-footer-simple__logo img{
  max-height:54px;
  width:auto;
  display:block;
}
.kfz-footer-simple__nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:22px;
  font-size:14px;
}
.kfz-footer-simple__nav a{
  color:var(--link-blue);
  text-decoration:none;
}
.kfz-footer-simple__nav a:hover{ text-decoration:underline; }
.kfz-footer-simple__copy{
  font-size:13px;
  color:var(--muted);
}

/* -----------------------------
   RESPONSIVE HEADER FIXES
   ----------------------------- */
@media (max-width: 992px){
  .seller-panel{ flex-direction:column; align-items:flex-start; }
  .store-search{ width:100%; justify-content:flex-start; }
  .seller-title{ font-size:26px; }
}
@media (max-width: 576px){
  .search-button{ padding:0 18px; min-width:auto; font-size:14px; }
  .search-select{ min-width:130px; }
}
/* =========================================
   GRID FINAL FIX (für dein echtes Markup)
   Container: #product-grid-container > .row > .product-item-col
   ========================================= */

/* 4 Spalten standard, mit sauberem Abstand */
#product-grid-container > .row{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: var(--grid-gap-y) var(--grid-gap-x) !important;

  /* Bootstrap .row neutralisieren */
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Sidebar offen => 3 Spalten */
#sidebarCol:not(.d-none) ~ #contentCol #product-grid-container > .row{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Jedes Item ist genau 1 Grid-Zelle */
#product-grid-container > .row > .product-item-col{
  grid-column: auto !important;
  min-width: 0 !important;

  /* falls irgendwo flex/width Regeln drauf sind */
  width: auto !important;
  max-width: none !important;
  flex: none !important;

  /* mögliche Bootstrap/Theme-Paddings killen */
  padding: 0 !important;
}

/* Responsive */
@media (max-width: 1200px){
  #product-grid-container > .row{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #sidebarCol:not(.d-none) ~ #contentCol #product-grid-container > .row{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 768px){
  #product-grid-container > .row{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 480px){
  #product-grid-container > .row{
    grid-template-columns: 1fr !important;
  }
}
/* =========================================
   eBay-like Card Finish (Override)
   -> ganz unten lassen
   ========================================= */

:root{
  --ebay-card-radius: 16px;
  --ebay-card-border: #ececec;
  --ebay-card-shadow: 0 1px 2px rgba(0,0,0,.06);
  --ebay-card-shadow-hover: 0 4px 14px rgba(0,0,0,.10);

  --ebay-media-bg: #f2f2f2;     /* graue Bildfläche wie eBay */
  --ebay-media-radius: 14px;
  --ebay-media-pad: 12px;       /* Abstand Bildbox zum Card-Rand */
  --ebay-media-size: 240px;     /* <- HIER: Bildhöhe anpassen (z.B. 220/240/260/300) */

  --ebay-title-size: 15px;      /* <- HIER: Titelgröße */
  --ebay-title-weight: 600;
  --ebay-price-size: 20px;      /* <- HIER: Preisgröße */
}

/* Card allgemein */
.kfz-card{
  background: #fff !important;
  border: 1px solid var(--ebay-card-border) !important;
  border-radius: var(--ebay-card-radius) !important;
  box-shadow: var(--ebay-card-shadow) !important;
  transform: none !important;           /* eBay: kein “hochfliegen” */
  max-width: none !important;           /* wichtig, falls irgendwo max-width gesetzt war */
}

/* Hover subtil */
.kfz-card:hover{
  box-shadow: var(--ebay-card-shadow-hover) !important;
  transform: none !important;
}

/* Media-Box wie eBay: innenliegend + grauer Hintergrund */
.kfz-card__media{
  margin: var(--ebay-media-pad) !important;
  border-radius: var(--ebay-media-radius) !important;
  background: var(--ebay-media-bg) !important;

  width: auto !important;
  height: var(--ebay-media-size) !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;

  display: grid !important;
  place-items: center !important;
}

/* Bild: eBay wirkt eher wie "contain" (weniger Crop) */
.kfz-card__media img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;   /* <- wenn du wieder “mehr Füllung” willst: cover */
  transform: none !important;
}

/* Herz: kleiner, oben rechts in der Media-Box */
.kfz-card__fav{
  top: 10px !important;
  right: 10px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(0,0,0,.10) !important;
}

/* Body: eBay hat wenig Höhe, alles links */
.kfz-card__body{
  padding: 0 12px 14px !important;  /* links/rechts kleiner + unten */
  text-align: left !important;
}

/* Titel: größer & ruhiger, 2 Zeilen */
.kfz-card__title{
  font-size: var(--ebay-title-size) !important;
  font-weight: var(--ebay-title-weight) !important;
  line-height: 1.25 !important;
  margin: 0 0 6px !important;

  -webkit-line-clamp: 2 !important;
  min-height: 38px !important;
}

/* Preis: kräftig */
.kfz-card__price-value{
  font-size: var(--ebay-price-size) !important;
  font-weight: 800 !important;
}

/* Optional: etwas weniger Abstand im Grid wie eBay */
:root{
  --grid-gap-x: 22px;
  --grid-gap-y: 22px;
}
/* =========================================
   Kategorie-Menü (Sidebar) – eBay Look
   ========================================= */

:root{
  --cat-title-size: 22px;         /* "Alle Kategorien" */
  --cat-link-size: 14px;          /* Link Schrift */
  --cat-line-height: 1.55;        /* Zeilenhöhe wie eBay */
  --cat-item-pad-y: 6px;          /* Abstand je Eintrag */
  --cat-item-gap: 10px;           /* Abstand zwischen Einträgen (per margin) */
  --cat-text: #111;
  --cat-muted: #555;
  --cat-hover: #000;
}

/* Sidebar-Container */
#sidebarCol{
  padding-right: 18px !important;
}

/* Überschrift */
#sidebarCol .sidebar-heading{
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
  font-size: var(--cat-title-size) !important;
  font-weight: 800 !important;
  color: var(--cat-text) !important;
  margin: 6px 0 14px 0 !important;
}

/* Liste clean */
#sidebarCol .sidebar-cats{
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Eintrag */
#sidebarCol .sidebar-cats li{
  margin: 0 0 var(--cat-item-gap) 0 !important;
}

/* Link: nicht blau, nicht “Button” */
#sidebarCol .sidebar-cats a{
  display: inline-block !important;
  padding: var(--cat-item-pad-y) 0 !important;
  border-radius: 0 !important;
  background: transparent !important;

  color: var(--cat-text) !important;
  font-size: var(--cat-link-size) !important;
  line-height: var(--cat-line-height) !important;
  font-weight: 500 !important;

  text-decoration: none !important;
}

/* Hover wie eBay: eher Text-Underline statt grauer Kasten */
#sidebarCol .sidebar-cats a:hover{
  color: var(--cat-hover) !important;
  text-decoration: underline !important;
  background: transparent !important;
}

/* Optional: aktuelle Kategorie (falls Oscar active-Klasse setzt) */
#sidebarCol .sidebar-cats a.active,
#sidebarCol .sidebar-cats li.active > a{
  font-weight: 800 !important;
  text-decoration: none !important;
}

/* Wenn die Sidebar lang wird: scrollbar wie eBay (optional) */
@media (min-width: 992px){
  #sidebarCol{
    max-height: calc(100vh - 260px);
    overflow: auto;
    position: sticky;
    top: 120px; /* passt zu deinem Header, ggf. 100-160 testen */
  }
}
/* Sidebar Links: schwarz wie eBay */
#sidebarCol .sidebar-cats a,
#sidebarCol .sidebar-cats a:visited{
  color: #111 !important;
  text-decoration: none !important;
}

#sidebarCol .sidebar-cats a:hover{
  color: #000 !important;
  text-decoration: underline !important;
}

/* optional: aktive Kategorie fett */
#sidebarCol .sidebar-cats a.active,
#sidebarCol .sidebar-cats li.active > a{
  font-weight: 800 !important;
}
/* =========================================
   Header: eBay-like Search + "Stöbern in Kategorien"
   ========================================= */

/* Logo + Browse nebeneinander */
.header-left{
  display:flex;
  align-items:center;
  gap:14px;
}

.header-logo img{
  max-height:44px;
  width:auto;
  display:block;
}

/* "Stöbern in Kategorien" */
.header-browse{
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  text-align:left;
  line-height:1.05;
}

.header-browse__label{
  display:block;
  font-size:12px;
  color:#666;
  font-weight:600;
}

.header-browse__value{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  color:#111;
  font-weight:700;
}

.header-browse__value i{
  font-size:12px;
  color:#666;
}

/* Suche: Rahmen wie eBay */
.search-bar-container{
  border:2px solid #111 !important;
  border-radius:999px !important;
  height:48px !important;
  overflow:hidden;
  background:#fff !important;
}

/* Innenabstände harmonisieren */
.search-bar-container .pl-3{ padding-left:16px !important; }
.search-bar-container .pr-2{ padding-right:10px !important; }

.search-icon{ color:#777 !important; }

/* Input/Select exakt gleich hoch */
.search-input{
  height:48px !important;
  padding:0 10px !important;
  font-size:16px !important;
}

.search-divider{
  margin:0 12px !important;
  height:60% !important;
}

/* Select optisch wie eBay */
.search-select{
  height:48px !important;
  min-width:190px !important;
  padding-right:34px !important;
  font-size:14px !important;
  color:#111 !important;
}

/* Button wie eBay */
.search-button{
  height:48px !important;
  border-radius:999px !important;
  padding:0 34px !important;
  font-weight:800 !important;
  font-size:16px !important;
}

/* Mobile: Browse ausblenden, damit Platz bleibt */
@media (max-width: 768px){
  .header-browse{ display:none; }
}
/* =========================================
   Header Search: Category Select rechts, klein, Chevron
   ========================================= */

.search-bar-container{
  display:flex !important;
  align-items:center !important;
}

/* Input nimmt den Platz, Select bleibt klein rechts */
.search-input{
  flex: 1 1 auto !important;
  min-width: 120px !important;
}

/* Divider bleibt vor dem Select */
.search-divider{
  flex: 0 0 1px !important;
  width:1px !important;
}

/* Select: nur so breit wie Text, ganz rechts */
.search-select{
  flex: 0 0 auto !important;
  width: max-content !important;     /* nur Textbreite */
  max-width: 220px !important;       /* Sicherheitslimit */
  min-width: 0 !important;

  border: none !important;
  background: transparent !important;
  height: 48px !important;

  padding: 0 34px 0 10px !important; /* rechts Platz fürs Chevron */
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #111 !important;

  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;

  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  /* kleines Chevron (Bullauge) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 14px !important;
}

/* Optional: wenn Text zu lang, sauber kürzen */
.search-select{
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
/* TOP BAR schmaler */
.top-bar{
  padding: 2px 0 !important;   /* war 4px */
  font-size: 12px !important;  /* optional kleiner */
  line-height: 1.2 !important;
}

/* =========================================
   SELLER PANEL – Fix: grauer Balken + Avatar größer
   (ganz unten lassen)
   ========================================= */

.seller-panel{
  background: #f6f6f6 !important;     /* wieder grau wie eBay */
  border: 1px solid #efefef !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

/* Avatar größer + Text in einer Zeile */
.seller-avatar{
  width: 96px !important;
  height: 96px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;  /* "kfz-store" nicht umbrechen */
}


/* Links kompakter und wie eBay ausrichten */
.seller-left{
  min-width: 0 !important;
  gap: 18px !important;
}

/* Avatar größer + Text nebeneinander */
.seller-avatar{
  width: 110px !important;
  height: 110px !important;
  border-radius: 999px !important;
  background: #ededed !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-weight: 800 !important;
  font-size: 16px !important;
  line-height: 1 !important;

  /* wichtig: Umbruch verhindern */
  white-space: nowrap !important;
  word-break: normal !important;
}

/* Falls im HTML noch ein <br> drin ist, verstecken wir den */
.seller-avatar br{ display:none !important; }


/* Titel & Meta: wie eBay (stärker, mehr Luft) */
.seller-title{
  margin: 0 0 8px 0 !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  letter-spacing: -0.4px !important;
}

.seller-meta{
  font-size: 14px !important;
  color: #111 !important;
  gap: 26px !important;
}

.seller-meta strong{
  font-weight: 800 !important;
  color: #111 !important;
}

/* Rechte Suche: eBay-like (hellgrau, ohne Rahmen) */
.store-search{
  justify-content: flex-end !important;
}

.store-search .store-search-wrap{
  width: min(560px, 100%) !important;
}

.store-search .store-search-input{
  background: #f3f3f3 !important;
  border: 0 !important;
  box-shadow: none !important;

  height: 44px !important;
  border-radius: 999px !important;

  padding: 0 18px 0 44px !important;
  font-size: 15px !important;
  color: #111 !important;
}

.store-search .store-search-input::placeholder{
  color: #666 !important;
}

.store-search .store-search-icon{
  color: #666 !important;
}
/* =========================================
   Headline "Alle Produkte" kleiner
   ========================================= */

#contentCol h1,
#contentCol .page-header h1,
#contentCol h2{
  font-size: 34px !important;   /* vorher war's sehr groß */
  font-weight: 500 !important;
  letter-spacing: -0.2px;
  margin-bottom: 18px !important;
}

/* Optional: auf kleineren Screens nochmal reduzieren */
@media (max-width: 768px){
  #contentCol h1,
  #contentCol .page-header h1,
  #contentCol h2{
    font-size: 28px !important;
  }
}
/* =========================================
   Layout-Tuning: Banner ↔ Seller-Balken enger + Suche im Balken weiß
   (ganz unten lassen)
   ========================================= */

/* 1) Abstand Banner -> Seller Panel kleiner */
.store-hero{
  margin-bottom: 2px !important;   /* war effektiv größer */
}

/* falls irgendwo padding/margin im Shell steckt */
.store-hero-shell,
.store-hero-card{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* 2) Seller Panel näher an den Banner */
.seller-panel{
  margin-top: 2px !important;      /* vorher ~14px */
}

/* 3) Suche im grauen Balken: Hintergrund weiß (wie eBay) */
.store-search .store-search-input{
  background: #fff !important;
  border: 0px solid #d0d0d0 !important;
}

/* Optional: Suchfeld optisch „knackiger“ */
.store-search .store-search-input:focus{
  outline: none !important;
  box-shadow: none !important;
  border-color: #bdbdbd !important;
}
/* =========================================
   PRODUCT DETAIL (eBay-like)
   ========================================= */
:root{
  --detail-gap: 28px;
  --detail-radius: 16px;
  --detail-line: #e8e8e8;
  --detail-muted: #6a6a6a;

  --btn-blue: #3665f3;
  --btn-blue-hover: #2b50c5;
}

/* Layout */
.kfz-detail{
  padding-top: 10px;
}

.kfz-detail__top{
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--detail-gap);
  align-items: start;
}

@media (max-width: 992px){
  .kfz-detail__top{
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Gallery (thumbs left + main image)
   ========================================= */
.kfz-gallery{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: start;
}

.kfz-gallery__thumbs{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kfz-thumb{
  border: 2px solid transparent;
  border-radius: 14px;
  background: #f3f3f3;
  padding: 6px;
  cursor: pointer;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
}
.kfz-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.kfz-thumb.is-active{
  border-color: #111;
  background: #fff;
}

.kfz-gallery__main{
  position: relative;
  border-radius: var(--detail-radius);
  background: #f3f3f3;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.kfz-gallery__mainimg{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

/* overlay icons (optisch) */
.kfz-gallery__icon{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #111;
  cursor: pointer;
}
.kfz-gallery__icon--heart{
  right: 72px;
}

/* =========================================
   Buy box (right)
   ========================================= */
.kfz-detail__buybox{
  border-left: 1px solid transparent;
}

.kfz-detail__title{
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 12px 0;
}

.kfz-detail__price{
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 8px 0;
}

.kfz-detail__stock{
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px 0;
}
.kfz-detail__stock.ok{ color: #0a7a2f; }
.kfz-detail__stock.bad{ color: #b00020; }

/* Seller row */
.kfz-detail__seller{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--detail-line);
  border-bottom: 1px solid var(--detail-line);
  margin-bottom: 14px;
}
.kfz-detail__seller-badge{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #efefef;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: #111;
}
.kfz-detail__seller-meta{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.kfz-detail__seller-link{
  color: #111;
  text-decoration: underline;
  font-weight: 700;
  font-size: 13px;
}

/* Fact rows */
.kfz-detail__facts{
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.kfz-detail__fact{
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
}
.kfz-detail__fact-label{
  color: var(--detail-muted);
  min-width: 110px;
}
.kfz-detail__fact-value{
  color: #111;
  font-weight: 800;
}
.kfz-detail__fact-link{
  font-weight: 800;
  color: #111;
  text-decoration: underline;
}

/* CTAs */
.kfz-detail__cta{
  display: grid;
  gap: 12px;
  margin: 18px 0 16px 0;
}

/* Oscar add-to-basket form: Button full width + eBay blue */
.kfz-detail__cta-primary form{
  margin: 0 !important;
}
.kfz-detail__cta-primary .btn,
.kfz-detail__cta-primary button[type="submit"],
.kfz-detail__cta-primary input[type="submit"]{
  width: 100% !important;
  height: 54px !important;
  border-radius: 999px !important;
  border: 2px solid var(--btn-blue) !important;
  background: var(--btn-blue) !important;
  color: #fff !important;
  font-weight: 900 !important;
  font-size: 16px !important;
}
.kfz-detail__cta-primary .btn:hover,
.kfz-detail__cta-primary button[type="submit"]:hover,
.kfz-detail__cta-primary input[type="submit"]:hover{
  background: var(--btn-blue-hover) !important;
  border-color: var(--btn-blue-hover) !important;
}

/* Wishlist: outline button style */
.kfz-detail__cta-secondary .btn,
.kfz-detail__cta-secondary a.btn,
.kfz-detail__cta-secondary button{
  width: 100% !important;
  height: 54px !important;
  border-radius: 999px !important;
  border: 2px solid var(--btn-blue) !important;
  background: #fff !important;
  color: var(--btn-blue) !important;
  font-weight: 900 !important;
  font-size: 16px !important;
}
.kfz-detail__cta-secondary .btn:hover,
.kfz-detail__cta-secondary a.btn:hover,
.kfz-detail__cta-secondary button:hover{
  background: rgba(54,101,243,.06) !important;
}

/* Shipping block */
.kfz-detail__shipping{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--detail-line);
  font-size: 14px;
}
.kfz-detail__ship-row{
  display: flex;
  gap: 10px;
  margin: 6px 0;
}
.kfz-detail__ship-label{
  color: var(--detail-muted);
  min-width: 80px;
}
.kfz-detail__ship-value{
  color: #111;
  font-weight: 700;
}

/* =========================================
   Tabs like eBay
   ========================================= */
.kfz-detail__tabs{
  margin-top: 26px;
}

.kfz-tabs{
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--detail-line);
  margin-bottom: 18px;
}
.kfz-tabs__tab{
  display: inline-block;
  padding: 12px 2px;
  font-weight: 900;
  color: #111;
  text-decoration: none;
  position: relative;
}
.kfz-tabs__tab.is-active::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: #111;
}

.kfz-tabpanel{
  padding: 6px 0 18px 0;
}

.kfz-h2{
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 14px 0;
}

/* Description typography cleanup */
.kfz-detail__desc{
  font-size: 16px;
  line-height: 1.55;
}

/* =========================================
   Specs: “Artikelmerkmale” grid like eBay
   ========================================= */
.kfz-attrs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
@media (max-width: 768px){
  .kfz-attrs{ grid-template-columns: 1fr; }
}
.kfz-attr{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--detail-line);
}
.kfz-attr__k{
  color: var(--detail-muted);
  font-weight: 800;
}
.kfz-attr__v{
  color: #111;
  font-weight: 800;
}

/* =========================================
   Compatibility table styling (wenn Tabelle in description)
   ========================================= */
.kfz-detail table{
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 14px;
}
.kfz-detail table th,
.kfz-detail table td{
  border: 1px solid #dcdcdc !important;
  padding: 10px 10px !important;
  vertical-align: top;
}
.kfz-detail table th{
  background: #f3f3f3 !important;
  font-weight: 900 !important;
}
/* =========================================
   PDP (Product Detail) – eBay-like Layout
   ========================================= */

.kfz-pdp{
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 15px 30px;
}

.kfz-pdp__top{
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Gallery */
.kfz-pdp__gallery-inner{
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
}

.kfz-pdp__thumbs{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kfz-pdp__thumb{
  border: 0;
  background: #f4f4f4;
  border-radius: 12px;
  padding: 6px;
  cursor: pointer;
  box-shadow: none;
}
.kfz-pdp__thumb img{
  width: 100%;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.kfz-pdp__thumb.is-active{
  outline: 2px solid #111;
  outline-offset: 2px;
}

.kfz-pdp__main{
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
}
.kfz-pdp__main img{
  width: 100%;
  height: auto;
  display: block;
}

/* Summary */
.kfz-pdp__title{
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 10px;
}
.kfz-pdp__price{
  font-size: 28px;
  font-weight: 900;
  margin: 6px 0 10px;
}

/* Seller row */
.kfz-pdp__seller{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 10px 0 14px;
}

.kfz-pdp__seller-badge{
  width: 62px;                 /* größer */
  height: 62px;                /* größer */
  border-radius: 999px;
  background: #f0f0f0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #111;
  font-size: 14px;             /* damit “kfz-store” nebeneinander passt */
  letter-spacing: -0.2px;
  white-space: nowrap;         /* wichtig: nicht umbrechen */
}

.kfz-pdp__seller-name{
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
}
.kfz-pdp__seller-sub{
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

/* Facts */
.kfz-pdp__facts{
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
}
.kfz-pdp__fact{
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
}
.kfz-pdp__fact-k{ color: var(--muted); }
.kfz-pdp__fact-v{ color: #111; font-weight: 700; }

.kfz-pdp__link{
  color: #111 !important;
  text-decoration: underline;
}
.kfz-pdp__link:hover{ text-decoration: none; }

/* Shipping */
.kfz-pdp__ship{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.kfz-pdp__ship-row{
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
  margin: 6px 0;
}
.kfz-pdp__ship-k{ color: var(--muted); }
.kfz-pdp__ship-v{ font-weight: 700; }

/* Tabs */
.kfz-pdp__tabs{
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.kfz-tabs{
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.kfz-tabs__link{
  color: #111;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 2px;
  position: relative;
}
.kfz-tabs__link.is-active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-2px;
  height:3px;
  border-radius: 2px;
  background:#111;
}

.kfz-tab{ display: none; }
.kfz-tab.is-active{ display: block; }
.kfz-tab__body{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

/* Specs */
.kfz-specs{
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.kfz-specs__row{
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.kfz-specs__row:nth-child(odd){ background: #fafafa; }
.kfz-specs__row:first-child{ border-top: 0; }
.kfz-specs__k{ font-weight: 800; }
.kfz-specs__v{ color: #111; }

/* Compatibility HTML tables (from eBay HTML) */
.kfz-compat table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.kfz-compat th, .kfz-compat td{
  border: 1px solid var(--line);
  padding: 10px 10px;
  vertical-align: top;
}
.kfz-compat th{
  background: #fafafa;
  font-weight: 900;
}

/* Hide Oscar "Price unavailable" if irgendwo doch vorhanden */
.price-unavailable,
.availability .price-unavailable,
.product_main .price-unavailable{
  display: none !important;
}

/* Responsive */
@media (max-width: 992px){
  .kfz-pdp__top{ grid-template-columns: 1fr; }
  .kfz-pdp__gallery-inner{ grid-template-columns: 1fr; }
  .kfz-pdp__thumbs{ flex-direction: row; overflow:auto; padding-bottom: 8px; }
  .kfz-pdp__thumb{ min-width: 78px; }
}
/* PDP Specs & Compatibility (eBay-like) */
.kfz-specs {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
}

.kfz-specs__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid #eee;
}

.kfz-specs__row:first-child { border-top: 0; }

.kfz-specs__k { font-weight: 600; color: #222; }
.kfz-specs__v { color: #222; }

/* Compatibility table */
.kfz-compat table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.kfz-compat th, .kfz-compat td {
  border: 1px solid #d0d0d0;
  padding: 8px 10px;
  vertical-align: top;
}

.kfz-compat th {
  background: #f7f7f7;
  font-weight: 700;
}

/* Seller badge bigger like eBay */
.kfz-pdp__seller-badge{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f2f2f2;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}
/* --- KFZ PDP Gallery --- */
.kfz-gallery{
  display:flex;
  gap:16px;
  align-items:stretch;
}

.kfz-gallery__thumbs{
  width:92px;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
}

.kfz-gallery__thumbbtn{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:12px;
  height:34px;
  cursor:pointer;
}

.kfz-gallery__thumbrail{
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:10px;
  background:#fff;
  overflow:auto;
  max-height:520px;
  display:flex;
  flex-direction:column;
  gap:10px;
  scrollbar-width:thin;
}

.kfz-gallery__thumb{
  border:2px solid transparent;
  border-radius:14px;
  padding:0;
  background:transparent;
  cursor:pointer;
  overflow:hidden;
}

.kfz-gallery__thumb img{
  display:block;
  width:100%;
  height:auto;
}

.kfz-gallery__thumb.is-active{
  border-color:rgba(0,0,0,.35);
}

.kfz-gallery__stage{
  flex:1;
  min-width:0;
}

.kfz-gallery__stageinner{
  position:relative;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  background:#fff;
  overflow:hidden;
}

.kfz-gallery__main{
  width:100%;
  height:auto;
  display:block;
  max-height:540px;
  object-fit:contain;
}

.kfz-gallery__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.92);
  cursor:pointer;
  font-size:28px;
  line-height:42px;
}

.kfz-gallery__nav--prev{ left:12px; }
.kfz-gallery__nav--next{ right:12px; }

.kfz-gallery__actions{
  position:absolute;
  top:12px;
  right:12px;
  display:flex;
  gap:10px;
}

.kfz-gallery__action{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.92);
  cursor:pointer;
  font-size:20px;
}

.kfz-gallery__caption{
  margin-top:10px;
  font-size:14px;
  opacity:.7;
}

.kfz-gallery__overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.82);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:22px;
}

.kfz-gallery__overlayimg{
  max-width:95vw;
  max-height:90vh;
  object-fit:contain;
  border-radius:14px;
  background:#fff;
}

.kfz-gallery__overlayclose{
  position:absolute;
  top:14px;
  right:14px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:0;
  background:rgba(255,255,255,.92);
  cursor:pointer;
  font-size:28px;
}

body.kfz-noscroll{ overflow:hidden; }

/* Mobile: thumbs unter das Bild */
@media (max-width: 768px){
  .kfz-gallery{ flex-direction:column; }
  .kfz-gallery__thumbs{ width:100%; }
  .kfz-gallery__thumbrail{
    flex-direction:row;
    max-height:none;
    overflow:auto;
    white-space:nowrap;
  }
  .kfz-gallery__thumb{ width:76px; flex:0 0 auto; }
}
/* ===== PDP / Detail ===== */
.kfz-title{
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: .75rem;
}

.kfz-price{
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: .35rem;
}

.kfz-shipping-row{
  display:flex;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .25rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.kfz-shipping-label{ opacity:.75; font-weight:800; }
.kfz-shipping-value{ font-weight:900; }

/* ===== Gallery (schicker, wie gewünscht) ===== */
.kfz-gallery{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;
}

.kfz-gallery-thumbs{
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.kfz-thumb{
  display:block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

.kfz-thumb img{
  width: 100%;
  height: 78px;
  object-fit: cover;
  display:block;
}

.kfz-gallery-main{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

.kfz-main-link{
  position: relative;
  display:block;
}

.kfz-main-image{
  width: 100%;
  height: 520px;
  object-fit: contain;
  display:block;
  background: #fff;
}

.kfz-zoom-badge{
  position:absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  line-height: 1;
}

/* ===== Tabellen ===== */
.kfz-attr-table th.kfz-attr-key{
  width: 45%;
  font-weight: 700;
}
.kfz-fitment-table th, .kfz-fitment-table td{
  white-space: nowrap;
}
.kfz-fitment-table{
  margin-bottom: 0;
}

/* PDP: Titel kleiner */
.kfz-buybox .kfz-title{
  font-size: 2.0rem;   /* ggf. 1.8rem */
  line-height: 1.15;
  margin-bottom: 10px;
}

/* PDP: Preis größer + fett */
.kfz-buybox .kfz-price{
  font-size: 2.4rem;
  font-weight: 800;
  margin: 6px 0 10px 0;
}

/* PDP: Versand größer + fett */
.kfz-buybox .kfz-shipping-row{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 6px 0 10px 0;
}

/* Wishlist Link ausblenden (schnell & effektiv) */
.kfz-buybox a[href*="wishlists"],
.kfz-buybox .wishlists,
.kfz-buybox .add-to-wishlist,
.kfz-buybox .wishlist,
.kfz-buybox .btn-wishlist{
  display:none !important;
}

/* Gallery: thumbs schöner */
.kfz-gallery-main{
  border-radius: 16px;
  overflow:hidden;
}

.kfz-gallery-thumbs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.kfz-thumb{
  display:block;
  width:72px;
  height:72px;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
  background:#fff;
}

.kfz-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Fitment table schöner */
.kfz-fitment table.kfz-fitment-table th,
.kfz-fitment table.kfz-fitment-table td{
  vertical-align: top;
  white-space: nowrap;
}

.kfz-fitment table.kfz-fitment-table{
  min-width: 900px; /* damit es nicht zusammenquetscht */
}
/* ===== PDP / Detailseite ===== */
.kfz-pdp {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.kfz-title{
  font-size: 26px;      /* kleiner */
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.kfz-price{
  font-size: 34px;      /* etwas kleiner als vorher */
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 6px 0 10px 0;
}

.kfz-shipping-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 10px 0;
}

.kfz-shipping-label{
  font-size: 14px;
  font-weight: 700;
  opacity: .9;
}

.kfz-shipping-value{
  font-size: 16px;      /* größer + fett */
  font-weight: 800;
}

.kfz-mini-table .kfz-mini-row{
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,.06);
}

.kfz-mini-key{
  font-weight: 700;
  opacity: .85;
}

.kfz-mini-val strong{
  font-weight: 900;
}

/* Wishlist / Wunschzettel komplett ausblenden (Oscar baut das teils im Partial) */
a[href*="wishlists"], a[href*="wishlist"] {
  display: none !important;
}

/* ===== Gallery (links thumbs, rechts main) ===== */
.kfz-gallery{
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: start;
}

.kfz-gallery-thumbs{
  max-height: 560px;
  overflow: auto;
  padding-right: 6px;
}

.kfz-thumb{
  display: block;
  border-radius: 14px;
  border: 2px solid transparent;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}

.kfz-thumb img{
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.kfz-thumb.is-active{
  border-color: rgba(0,0,0,.35);
}

.kfz-gallery-main{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
}

.kfz-main-image{
  width: 100%;
  height: 560px;
  object-fit: contain;
  display: block;
  background: #fff;
}

.kfz-zoom{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(0,0,0,.08);
  z-index: 3;
}

.kfz-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  font-size: 28px;
  line-height: 1;
  z-index: 3;
}

.kfz-prev{ left: 12px; }
.kfz-next{ right: 12px; }

.kfz-counter{
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 800;
  font-size: 13px;
  z-index: 3;
}

/* Mobile: thumbs unten */
@media (max-width: 991px){
  .kfz-gallery{
    grid-template-columns: 1fr;
  }
  .kfz-gallery-thumbs{
    display: flex;
    gap: 10px;
    max-height: none;
    overflow: auto;
    padding-right: 0;
    order: 2;
  }
  .kfz-thumb{
    margin: 0;
    min-width: 86px;
  }
  .kfz-main-image{
    height: auto;
    max-height: 520px;
  }
  .kfz-title{ font-size: 22px; }
  .kfz-price{ font-size: 30px; }
}
/* -------------------------
   PDP Typography tweaks
-------------------------- */
.kfz-title--sm{
  font-size: 1.55rem;
  line-height: 1.15;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
}
.kfz-price--md{
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kfz-shipping-row--strong .kfz-shipping-label,
.kfz-shipping-row--strong .kfz-shipping-value{
  font-weight: 800;
  font-size: 1.05rem;
}
.kfz-strong{ font-weight: 800; }

/* Wishlist komplett ausblenden (Oscar hängt das je nach Partial an) */
.add-to-wishlist,
.wishlist,
#wishlist,
.wishlist-form,
.wishlist-actions,
.kfz-buybox a[href*="wish"],
.kfz-buybox a[href*="wishlist"]{
  display:none !important;
}

/* Mehr Luft zwischen Sektionen */
.kfz-section{ margin-top: 1.25rem; }
.kfz-card .card-body{ padding: 1.25rem; }

/* -------------------------
   Gallery (wie Screenshot 2)
-------------------------- */
.kfz-gallery{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;
}

.kfz-gallery-thumbs{
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
}

.kfz-thumb{
  display:block;
  border-radius: 12px;
  border: 2px solid transparent;
  overflow: hidden;
  background: #fff;
  margin-bottom: 10px;
}
.kfz-thumb img{
  width: 100%;
  height: 74px;
  object-fit: cover;
  display:block;
}
.kfz-thumb.is-active{
  border-color: rgba(13,110,253,.55);
}

.kfz-gallery-main-inner{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
}
.kfz-main-image{
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display:block;
  background: #fff;
}

.kfz-gbtn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
  font-size: 26px;
  line-height: 40px;
  padding: 0;
}
.kfz-gbtn-prev{ left: 14px; }
.kfz-gbtn-next{ right: 14px; }

.kfz-gallery-counter{
  position:absolute;
  left: 14px;
  bottom: 12px;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* -------------------------
   Fitment table styling
-------------------------- */
.kfz-fitment-table th{
  white-space: nowrap;
}
.kfz-fitment-plaintext{
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .95rem;
}
/* Karten/Blöcke: mind. 15px Abstand */
.kfz-mb { margin-bottom: 15px !important; }

/* Titel + Preis */
.kfz-title { font-size: 26px; line-height: 1.15; font-weight: 600; }
.kfz-price { font-size: 44px; font-weight: 800; }

/* Versand größer/fett */
.kfz-shipping-label, .kfz-shipping-value { font-size: 16px; font-weight: 800; }

/* Bestand fett/sauber */
.kfz-stock-strong { font-weight: 800; font-size: 18px; }

/* Wunschzettel überall ausblenden (Oscar variiert je nach Partial) */
.wishlist, .add-to-wishlist, .wishlists, a[href*="wish"], a[href*="wishlist"] { display: none !important; }

/* Gallery: Pfeile größer + fett */
.kfz-gallery-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  font-size: 34px;          /* größer */
  font-weight: 900;         /* fett */
  line-height: 44px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 5;
}
.kfz-gallery-prev{ left: 12px; }
.kfz-gallery-next{ right: 12px; }

/* Thumb-Layout (links) */
.kfz-gallery { display: grid; grid-template-columns: 88px 1fr; gap: 14px; }
.kfz-gallery-thumbs{ display:flex; flex-direction:column; gap:10px; max-height: 560px; overflow:auto; padding-right:6px; }
.kfz-thumb{ border:0; background:transparent; padding:0; border-radius: 12px; }
.kfz-thumb img{ width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 2px solid transparent; display:block; }
.kfz-thumb.is-active img{ border-color: #3b82f6; }

/* Main Image */
.kfz-gallery-main{ border-radius: 18px; overflow:hidden; }
.kfz-main-image{ width:100%; height:auto; display:block; }
.kfz-zoom{
  position:absolute; top:12px; right:12px;
  width:36px; height:36px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.95);
  text-decoration:none;
  font-weight:900;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index:6;
}
.kfz-gallery-counter{
  position:absolute; left:12px; bottom:12px;
  background: rgba(255,255,255,.95);
  padding:6px 10px; border-radius:999px;
  font-weight:800;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index:6;
}
/* Custom styles (merged/overrides) */

:root{
  --kfz-radius: 18px;
  --kfz-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* PDP: Abstand zwischen den Boxen */
.kfz-pdp__top{margin-bottom:25px !important;}
.kfz-tabs{margin-top:25px !important;}
