/* Diyar Computers — Quote List styles */
:root {
  --dq-navy: #1a365d;
  --dq-navy-dark: #12263f;
  --dq-wa: #25d366;
  --dq-wa-dark: #128c7e;
  --dq-gold: #c9a227;
}

#dq-root { font-family: inherit; }
.dq-lock { overflow: hidden; }

/* floating button */
#dq-fab {
  position: fixed; bottom: 88px; right: 20px; z-index: 9998;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--dq-navy); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .15s ease, background .15s ease;
}
#dq-fab:hover { background: var(--dq-navy-dark); transform: translateY(-2px); }
#dq-fab:focus-visible { outline: 3px solid var(--dq-gold); outline-offset: 2px; }
[dir="rtl"] #dq-fab { right: auto; left: 20px; }

#dq-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: var(--dq-gold); color: #1a1a1a; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
[dir="rtl"] #dq-badge { right: auto; left: -4px; }

/* backdrop + drawer */
#dq-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9998; }
#dq-drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 9999;
  width: min(400px, 100vw);
  background: #fff; display: flex; flex-direction: column;
  box-shadow: -6px 0 24px rgba(0,0,0,.2);
  animation: dq-in .2s ease;
}
#dq-drawer[hidden], #dq-backdrop[hidden] { display: none; }
[dir="rtl"] #dq-drawer { right: auto; left: 0; box-shadow: 6px 0 24px rgba(0,0,0,.2); animation-name: dq-in-rtl; }
@keyframes dq-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes dq-in-rtl { from { transform: translateX(-100%); } to { transform: none; } }

#dq-drawer header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--dq-navy); color: #fff;
}
#dq-drawer header h2 { margin: 0; font-size: 18px; }
#dq-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 4px 8px; }
#dq-close:focus-visible { outline: 2px solid var(--dq-gold); }

#dq-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.dq-empty { color: #556; font-size: 14px; line-height: 1.5; }

.dq-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef1f5; }
.dq-item-name { font-size: 13.5px; line-height: 1.35; color: #223; flex: 1; }
.dq-item-ctrl { display: flex; align-items: center; gap: 6px; }
.dq-qty {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid #cbd5e1;
  background: #f8fafc; cursor: pointer; font-size: 14px; line-height: 1;
}
.dq-qty:hover { background: #eef2f7; }
.dq-item-qty { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.dq-remove { background: none; border: none; color: #b91c1c; cursor: pointer; font-size: 13px; padding: 4px; }

#dq-contact { padding: 8px 20px; display: grid; gap: 8px; }
#dq-contact input {
  width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: 14px; font-family: inherit; box-sizing: border-box;
}
#dq-contact input:focus { outline: 2px solid var(--dq-navy); border-color: transparent; }

#dq-drawer footer { padding: 14px 20px 18px; border-top: 1px solid #eef1f5; display: grid; gap: 8px; }
.dq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 10px; font-size: 15px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer; font-family: inherit;
}
.dq-btn-wa { background: var(--dq-wa); color: #fff; }
.dq-btn-wa:hover { background: var(--dq-wa-dark); }
.dq-btn-wa.dq-disabled { background: #cbd5e1; pointer-events: none; }
.dq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dq-btn-ghost { background: #f1f5f9; color: var(--dq-navy); font-size: 13.5px; padding: 9px 12px; }
.dq-btn-ghost:hover { background: #e2e8f0; }

/* inline "Add to Quote" (auto-injected on product pages + reusable) */
.dq-inline-add, [data-quote-add].dq-styled {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 10px 0; padding: 11px 18px; border-radius: 10px;
  background: var(--dq-navy); color: #fff; border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 600; font-family: inherit;
}
.dq-inline-add:hover, [data-quote-add].dq-styled:hover { background: var(--dq-navy-dark); }
.dq-inline-add:disabled { background: var(--dq-wa-dark); }

@media (max-width: 480px) {
  #dq-fab { bottom: 80px; right: 14px; width: 52px; height: 52px; }
  [dir="rtl"] #dq-fab { right: auto; left: 14px; }
}
