/* ==========================================================================
   DefStok Enterprise Functional & Visual UX Upgrade Layer (2026)
   ========================================================================== */

:root {
  --dfs-navy: #060d18;
  --dfs-navy-mid: #0f1c2e;
  --dfs-navy-light: #16263d;
  --dfs-gold: #9a7b3c;
  --dfs-gold-bright: #c4a962;
  --dfs-gold-soft: rgba(196, 169, 98, 0.14);
  --dfs-emerald: #10b981;
  --dfs-border: #e2e8f0;
  --dfs-ink: #0c1524;
}

/* 1. Top Tactical Command Bar */
.dfs-command-bar {
  background: linear-gradient(90deg, #040911 0%, #0b1626 50%, #040911 100%);
  border-bottom: 1px solid rgba(196, 169, 98, 0.28);
  color: #e2e8f0;
  font-size: 12px;
  position: relative;
  z-index: 60;
}
.dfs-command-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.dfs-command-bar__status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dfs-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
  display: inline-block;
}
.dfs-command-bar__badge {
  background: rgba(196, 169, 98, 0.15);
  color: #e5c97b;
  border: 1px solid rgba(196, 169, 98, 0.35);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
}
.dfs-command-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dfs-cmd-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
  text-decoration: none;
}
.dfs-cmd-btn:hover {
  background: rgba(196, 169, 98, 0.18);
  border-color: #c4a962;
  color: #ffffff;
}
.dfs-cmd-btn--gold {
  background: linear-gradient(180deg, #c4a962 0%, #9a7b3c 100%);
  color: #060d18;
  border-color: #c4a962;
  font-weight: 700;
}
.dfs-cmd-btn--gold:hover {
  filter: brightness(1.08);
  color: #060d18;
}
.dfs-count-pill {
  background: #060d18;
  color: #e5c97b;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

/* 2. Product Card Functional Action Bar */
.corp-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}
.corp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(6, 13, 24, 0.12) !important;
  border-color: rgba(154, 123, 60, 0.55) !important;
}
.dfs-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  width: 100%;
}
.dfs-card-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.16s ease;
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}
.dfs-card-btn--rfq {
  background: #060d18;
  color: #ffffff;
  border-color: #060d18;
}
.dfs-card-btn--rfq:hover {
  background: #16263d;
}
.dfs-card-btn--cart {
  background: rgba(196, 169, 98, 0.14);
  color: #6b5322;
  border-color: rgba(154, 123, 60, 0.4);
}
.dfs-card-btn--cart:hover,
.dfs-card-btn--cart.is-active {
  background: linear-gradient(180deg, #c4a962 0%, #9a7b3c 100%);
  color: #060d18;
  border-color: #9a7b3c;
}
.dfs-card-btn--cmp {
  flex: 0 0 auto;
  padding: 7px 9px;
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}
.dfs-card-btn--cmp:hover,
.dfs-card-btn--cmp.is-active {
  background: #0f1c2e;
  color: #e5c97b;
  border-color: #0f1c2e;
}

/* 3. Interactive Homepage B2B Command & Valuation Hub */
.dfs-hub-section {
  background: linear-gradient(180deg, #060d18 0%, #0c1829 100%);
  color: #f8fafc;
  padding: 64px 0;
  border-top: 1px solid rgba(196, 169, 98, 0.25);
  border-bottom: 1px solid rgba(196, 169, 98, 0.25);
}
.dfs-hub-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.dfs-hub-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}
.dfs-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dfs-hub-tab {
  background: transparent;
  color: #cbd5e1;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.dfs-hub-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.dfs-hub-tab.is-active {
  background: linear-gradient(180deg, #c4a962 0%, #9a7b3c 100%);
  color: #060d18;
  font-weight: 700;
}
.dfs-hub-panel {
  background: rgba(15, 28, 46, 0.85);
  border: 1px solid rgba(196, 169, 98, 0.28);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.dfs-calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .dfs-calc-grid {
    grid-template-columns: 1fr;
  }
}
.dfs-result-box {
  background: #060d18;
  border: 1px solid rgba(196, 169, 98, 0.35);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dfs-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}
.dfs-stat-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 16px;
  color: #e5c97b;
}

/* 4. Catalog Quick Filter Bar (/urunler/) */
.dfs-catalog-toolbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(6, 13, 24, 0.04);
}
.dfs-chip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.dfs-spec-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.dfs-spec-chip:hover {
  background: #060d18;
  color: #e5c97b;
  border-color: #060d18;
}

/* 5. Floating Bottom-Right RFQ & Compare Dock */
.dfs-floating-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.dfs-dock-btn {
  background: #060d18;
  color: #ffffff;
  border: 1px solid #c4a962;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(6, 13, 24, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.dfs-dock-btn:hover {
  transform: translateY(-2px);
  background: #0f1c2e;
}
.dfs-dock-badge {
  background: linear-gradient(180deg, #c4a962 0%, #9a7b3c 100%);
  color: #060d18;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

/* 6. Modals & Slide-Over Drawers */
.dfs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 17, 0.76);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dfs-modal {
  background: #ffffff;
  color: #0c1524;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}
.dfs-modal__head {
  background: #060d18;
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #9a7b3c;
}
.dfs-modal__body {
  padding: 24px;
}
.dfs-input,
.dfs-select,
.dfs-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: #0c1524;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease;
}
.dfs-input:focus,
.dfs-select:focus,
.dfs-textarea:focus {
  border-color: #9a7b3c;
  box-shadow: 0 0 0 3px rgba(154, 123, 60, 0.15);
}
.dfs-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
  margin-bottom: 5px;
}
.dfs-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 120;
  background: #060d18;
  color: #ffffff;
  border-left: 4px solid #c4a962;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  animation: dfsSlideIn 0.22s ease-out;
}
@keyframes dfsSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
