/* ============================================================
   AKE RFQ — Teklif Sepeti (Cart/Drawer/Trust/Sort/Spec)
   Ergänzt ake-catalog.css. Marke: Navy #16223f / Rot #e32726 / WA-Grün #0f7d3b
   ============================================================ */
:root {
  --ake-navy: #16223f; --ake-red: #e32726; --ake-wa: #0f7d3b;
  --ake-line: #e7ecf3; --ake-muted: #6b7689; --ake-ink: #1c2433;
}

/* ---- Mobile Filter-Toggle (Drawer) ---- */
.ake-filter-toggle { display: none; align-items: center; gap: 8px; width: 100%; margin-bottom: 14px;
  padding: 12px 16px; border: 1px solid var(--ake-line); border-radius: 10px; background: #fff;
  font: 600 14px 'Poppins', sans-serif; color: var(--ake-navy); cursor: pointer; }
.ake-filter-toggle svg { width: 18px; height: 18px; }
.ake-filter-toggle:focus-visible { outline: 2px solid var(--ake-navy); outline-offset: 2px; }
@media (max-width: 700px) {
  .ake-filter-toggle { display: inline-flex; }
  .ake-filters { display: none; }
  .ake-filters.is-open { display: flex; flex-direction: column; align-items: stretch;
    border: 1px solid var(--ake-line); border-radius: 12px; padding: 10px; margin-bottom: 18px; background: #fff; }
  .ake-filters.is-open .ake-chip { justify-content: space-between; border: 0; border-bottom: 1px solid var(--ake-line); border-radius: 0; padding: 12px 8px; }
  .ake-filters.is-open .ake-chip:last-child { border-bottom: 0; }
}

/* ---- Kategorie-/Hub-Intro ---- */
.ake-intro { max-width: 1240px; margin: 0 auto 18px; color: #3a4456; font-size: 14.5px; line-height: 1.65; font-family: 'Poppins', sans-serif; }

/* ---- FAQ ---- */
.ake-faq { max-width: 860px; margin: 56px auto 0; font-family: 'Poppins', sans-serif; }
.ake-faq h2 { font-size: 22px; font-weight: 700; color: var(--ake-navy); text-align: center; margin: 0 0 24px; }
.ake-faq-list { display: flex; flex-direction: column; gap: 10px; }
.ake-faq-item { border: 1px solid var(--ake-line); border-radius: 12px; background: #fff; overflow: hidden; }
.ake-faq-item summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; position: relative;
  font-size: 14.5px; font-weight: 600; color: var(--ake-navy); }
.ake-faq-item summary::-webkit-details-marker { display: none; }
.ake-faq-item summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--ake-red); transition: transform .2s; }
.ake-faq-item[open] summary::after { content: '−'; }
.ake-faq-item summary:focus-visible { outline: 2px solid var(--ake-navy); outline-offset: -2px; }
.ake-faq-a { padding: 0 18px 16px; }
.ake-faq-a p { margin: 0; color: #3a4456; font-size: 14px; line-height: 1.7; }

/* ---- Hilfe-CTA unter Grid ---- */
.ake-help-cta { display:flex; flex-wrap:wrap; gap:10px 18px; align-items:center; justify-content:center; margin:40px auto 0;
  padding:22px; border:1px dashed var(--ake-line); border-radius:14px; max-width:1240px; font-family:'Poppins',sans-serif; }
.ake-help-cta span { font-size:14px; color:var(--ake-muted); }
.ake-help-cta a { font-size:13.5px; font-weight:600; color:var(--ake-navy); text-decoration:none; padding:8px 16px; border:1px solid var(--ake-line); border-radius:999px; transition:border-color .18s, background .18s; }
.ake-help-cta a:hover { border-color:var(--ake-navy); background:#eef2f8; }

/* ---- Trust-Bar ---- */
.ake-trustbar {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  padding: 16px 24px; margin: 0 auto 26px; max-width: 1240px;
  border: 1px solid var(--ake-line); border-radius: 12px; background: #fff;
  font-family: 'Poppins', sans-serif;
}
.ake-trustbar li { display: inline-flex; align-items: center; gap: 8px; list-style: none;
  font-size: 13px; font-weight: 500; color: var(--ake-navy); }
.ake-trustbar svg { width: 17px; height: 17px; color: var(--ake-red); flex: none; }

/* ---- Sort-Bar (ergänzt .ake-toolbar) ---- */
.ake-sortbar { display: inline-flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif; }
.ake-sortbar label { font-size: 13px; color: var(--ake-muted); }
.ake-sortbar select {
  height: 46px; padding: 0 34px 0 14px; border: 1px solid var(--ake-line); border-radius: 10px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7689' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 12px center;
  font-size: 14px; color: var(--ake-ink); appearance: none; cursor: pointer;
}
.ake-sortbar select:focus-visible { outline: 2px solid var(--ake-navy); outline-offset: 2px; }

/* ---- Karten-SKU ---- */
.ake-card-sku { font-size: 11.5px; color: var(--ake-muted); margin: -6px 0 12px; font-family: 'Poppins', sans-serif; }

/* ---- Karten-Aktionen: Dual-CTA (Sepete Ekle + WA) ---- */
.ake-card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.ake-addcart {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 12px; border: 0; border-radius: 8px; cursor: pointer; line-height: 1;
  background: var(--ake-navy); color: #fff; font-size: 12.5px; font-weight: 600;
  font-family: 'Poppins', sans-serif; transition: background .18s, transform .12s;
}
.ake-addcart:hover { background: #20305a; }
.ake-addcart:active { transform: scale(.97); }
.ake-addcart.is-added { background: var(--ake-wa); }
.ake-addcart svg { width: 15px; height: 15px; }
.ake-wa-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 40px;
  border-radius: 8px; background: #eaf6ee; color: var(--ake-wa); text-decoration: none;
  transition: background .18s;
}
.ake-wa-icon:hover { background: #d7eede; color: var(--ake-wa); }
.ake-wa-icon svg { width: 17px; height: 17px; }
.ake-addcart:focus-visible, .ake-wa-icon:focus-visible { outline: 2px solid var(--ake-navy); outline-offset: 2px; }

/* ---- Sticky Cart-FAB — immer sichtbar, links (rechts sitzen Theme-FABs Teklif/WhatsApp) ---- */
.ake-cart-fab {
  position: fixed; left: 18px; bottom: 24px; z-index: 1200;
  height: 52px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ake-navy); color: #fff; box-shadow: 0 10px 26px rgba(22,34,63,.34);
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 14px 'Poppins', sans-serif;
  transition: transform .18s, background .18s; opacity: 1;
}
.ake-cart-fab::after { content: 'Teklif Sepeti'; }
.ake-cart-fab:hover { background: #20305a; transform: translateY(-2px); }
.ake-cart-fab svg { width: 22px; height: 22px; }
.ake-cart-fab-badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--ake-red); color: #fff; font: 700 12px/22px 'Poppins', sans-serif;
  text-align: center; display: none;
}
.ake-cart-fab.has-items .ake-cart-fab-badge { display: inline-block; }
@media (max-width: 575px) { .ake-cart-fab::after { display: none; } .ake-cart-fab { padding: 0; width: 52px; justify-content: center; border-radius: 50%; } }

/* ---- Drawer ---- */
.ake-drawer[hidden] { display: none; }
.ake-drawer { position: fixed; inset: 0; z-index: 1300; font-family: 'Poppins', sans-serif; }
.ake-drawer-backdrop { position: absolute; inset: 0; background: rgba(15,22,40,.55); animation: ake-fade .2s ease; }
.ake-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: #fff; box-shadow: -12px 0 40px rgba(15,22,40,.28);
  display: flex; flex-direction: column; animation: ake-slidein .24s ease;
}
@keyframes ake-fade { from { opacity: 0; } }
@keyframes ake-slidein { from { transform: translateX(100%); } }
.ake-drawer-head { display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--ake-line); }
.ake-drawer-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--ake-navy); }
.ake-drawer-title span { color: var(--ake-red); }
.ake-drawer-x { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ake-muted); cursor: pointer; padding: 0 4px; }
.ake-drawer-x:hover { color: var(--ake-navy); }
.ake-drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.ake-drawer-empty { color: var(--ake-muted); font-size: 14px; text-align: center; padding: 48px 12px; }

.ake-cart-row { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--ake-line); }
.ake-cart-row img { width: 52px; height: 52px; object-fit: contain; background: #f3f6fb; border-radius: 8px; border: 1px solid var(--ake-line); }
.ake-cart-info { min-width: 0; }
.ake-cart-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--ake-navy); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ake-cart-name:hover { color: var(--ake-red); }
.ake-cart-sku { font-size: 11.5px; color: var(--ake-muted); }
.ake-qty { display: inline-flex; align-items: center; border: 1px solid var(--ake-line); border-radius: 8px; overflow: hidden; }
.ake-qty button { width: 28px; height: 30px; border: 0; background: #f6f8fb; color: var(--ake-navy); font-size: 15px; cursor: pointer; }
.ake-qty button:hover { background: #eef2f8; }
.ake-qty input { width: 34px; height: 30px; border: 0; text-align: center; font-size: 13px; color: var(--ake-ink); -moz-appearance: textfield; }
.ake-qty input::-webkit-outer-spin-button, .ake-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ake-cart-del { border: 0; background: none; color: #b9c2d0; font-size: 20px; cursor: pointer; padding: 0 2px; }
.ake-cart-del:hover { color: var(--ake-red); }

.ake-drawer-foot { padding: 16px 20px; border-top: 1px solid var(--ake-line); display: grid; gap: 9px; }
.ake-rfq-wa, .ake-rfq-form {
  display: block; text-align: center; padding: 13px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none;
}
.ake-rfq-wa { background: var(--ake-wa); color: #fff; }
.ake-rfq-wa:hover { background: #0b6630; color: #fff; }
.ake-rfq-form { background: var(--ake-navy); color: #fff; }
.ake-rfq-form:hover { background: #20305a; color: #fff; }
.ake-rfq-clear { border: 0; background: none; color: var(--ake-muted); font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.ake-rfq-clear:hover { color: var(--ake-red); }
.ake-drawer-foot a:focus-visible, .ake-drawer-foot button:focus-visible, .ake-drawer-x:focus-visible, .ake-qty button:focus-visible { outline: 2px solid var(--ake-navy); outline-offset: 2px; }

/* ---- Toast ---- */
.ake-rfq-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 1400;
  background: var(--ake-navy); color: #fff; padding: 11px 20px; border-radius: 999px;
  font: 600 13.5px 'Poppins', sans-serif; box-shadow: 0 8px 24px rgba(15,22,40,.3);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.ake-rfq-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- PDP Spec-/Kompatibilitäts-Block ---- */
.ake-spec { margin: 22px 0; border: 1px solid var(--ake-line); border-radius: 12px; overflow: hidden; font-family: 'Poppins', sans-serif; }
.ake-spec h2 { margin: 0; padding: 13px 18px; font-size: 14px; font-weight: 700; color: var(--ake-navy); background: #f6f8fb; border-bottom: 1px solid var(--ake-line); }
.ake-spec table { width: 100%; border-collapse: collapse; }
.ake-spec th, .ake-spec td { text-align: left; padding: 11px 18px; font-size: 13.5px; border-bottom: 1px solid var(--ake-line); }
.ake-spec tr:last-child th, .ake-spec tr:last-child td { border-bottom: 0; }
.ake-spec th { width: 42%; color: var(--ake-muted); font-weight: 500; }
.ake-spec td { color: var(--ake-ink); font-weight: 500; }
.ake-spec td.tbd { color: #9aa3b2; font-style: italic; font-weight: 400; }
.ake-compat { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }
.ake-compat a, .ake-compat span { display: inline-flex; padding: 6px 12px; border: 1px solid var(--ake-line); border-radius: 999px;
  font-size: 12.5px; color: var(--ake-navy); text-decoration: none; background: #fff; }
.ake-compat a:hover { border-color: var(--ake-navy); background: #eef2f8; }

/* ---- PDP Downloads (Datenblatt / Zeichnung) ---- */
.ake-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.ake-dl { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--ake-line); border-radius: 10px;
  font: 600 13px 'Poppins', sans-serif; color: var(--ake-navy); text-decoration: none; background: #fff; transition: border-color .18s, background .18s; }
.ake-dl:hover { border-color: var(--ake-navy); background: #f6f8fb; color: var(--ake-navy); }
.ake-dl svg { width: 16px; height: 16px; color: var(--ake-red); }

/* ---- İlgili Parçalar (Related) ---- */
.ake-related { margin: 48px 0 0; border-top: 1px solid var(--ake-line); padding-top: 32px; font-family: 'Poppins', sans-serif; }
.ake-related-h { font-size: 18px; font-weight: 700; color: var(--ake-navy); margin: 0 0 18px; }
.ake-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ake-related-card { display: flex; flex-direction: column; border: 1px solid var(--ake-line); border-radius: 12px; overflow: hidden; text-decoration: none; background: #fff; transition: border-color .18s, box-shadow .18s, transform .18s; }
.ake-related-card:hover { border-color: var(--ake-navy); box-shadow: 0 10px 24px -12px rgba(22,34,63,.3); transform: translateY(-3px); }
.ake-related-card:focus-visible { outline: 2px solid var(--ake-navy); outline-offset: 2px; }
.ake-related-img { aspect-ratio: 1/1; background: var(--ake-img-bg, #f3f6fb); border-bottom: 1px solid var(--ake-line); display: flex; }
.ake-related-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.ake-related-name { padding: 11px 12px 4px; font-size: 13px; font-weight: 600; color: var(--ake-navy); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ake-related-sku { padding: 0 12px 12px; font-size: 11px; color: var(--ake-muted); }

/* ---- PDP Dual-CTA im Quote-Card ---- */
.ake-detail-addcart {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 15px 22px; margin-bottom: 10px; border: 0; border-radius: 11px; cursor: pointer;
  background: var(--ake-navy); color: #fff; font: 600 15px 'Poppins', sans-serif; line-height: 1;
  transition: background .18s, transform .12s;
}
.ake-detail-addcart:hover { background: #20305a; }
.ake-detail-addcart.is-added { background: var(--ake-wa); }
.ake-detail-addcart svg { width: 18px; height: 18px; }

@media (max-width: 575px) {
  .ake-cart-fab { left: 14px; bottom: 18px; }
  .ake-card-actions { grid-template-columns: 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ake-drawer-backdrop, .ake-drawer-panel, .ake-rfq-toast, .ake-cart-fab, .ake-addcart, .ake-detail-addcart { animation: none !important; transition: none !important; }
}
