/* ═══════════════════════════════════════════════════════════════
   iLantern — Quotation Request Cart styles
   Smoky black-glass aesthetic to match nav.
   ═══════════════════════════════════════════════════════════════ */

#quoteWidget { position: fixed; z-index: 2000; }

#quoteToggle {
  position: fixed;
  bottom: 1.6rem;
  left: 1.6rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(8,8,8,0.55);
  backdrop-filter: blur(40px) saturate(1.4) brightness(1.15);
  -webkit-backdrop-filter: blur(40px) saturate(1.4) brightness(1.15);
  border: 1px solid rgba(201,149,90,0.45);
  color: var(--copper, #c9955a);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2001;
}
#quoteToggle:hover { transform: translateY(-2px); border-color: rgba(201,149,90,0.7); background: rgba(8,8,8,0.7); }
#quoteToggle:active { transform: scale(0.94); }
.quote-toggle-icon { font-size: 1.4rem; line-height: 1; }
.quote-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--copper, #c9955a);
  color: #111;
  font-size: 0.7rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
}
.quote-count.show { display: flex; }
.quote-count.bump { animation: quoteBump 0.35s ease; }
@keyframes quoteBump { 0%{transform:scale(1);} 40%{transform:scale(1.4);} 100%{transform:scale(1);} }

.quote-panel {
  position: fixed;
  bottom: 1.6rem;
  left: 1.6rem;
  width: 340px;
  max-width: calc(100vw - 3.2rem);
  max-height: 70vh;
  background: rgba(8,8,8,0.82);
  backdrop-filter: blur(40px) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);
  border: 1px solid rgba(201,149,90,0.35);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 2002;
}
.quote-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.quote-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.quote-panel-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink, #e8e0d4);
  letter-spacing: 0.02em;
}
.quote-close {
  background: none;
  border: none;
  color: var(--muted, #a89880);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}
.quote-close:hover { color: var(--copper, #c9955a); }
.quote-list { overflow-y: auto; padding: 0.5rem 0.8rem; flex: 1 1 auto; }
.quote-empty {
  text-align: center;
  color: var(--muted, #a89880);
  font-size: 0.85rem;
  padding: 2rem 1rem;
  line-height: 1.5;
}
.quote-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "thumb main controls" "note note note";
  gap: 0.3rem 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.quote-item-thumb {
  grid-area: thumb;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  align-self: center;
}
.quote-item-main { grid-area: main; min-width: 0; }
.quote-item-sku { font-family: 'SF Mono', Menlo, monospace; font-size: 0.72rem; color: var(--copper, #c9955a); letter-spacing: 0.02em; }
.quote-item-name { font-size: 0.85rem; color: var(--ink, #e8e0d4); line-height: 1.3; word-break: break-word; }
.quote-item-controls { grid-area: controls; display: flex; align-items: center; gap: 0.5rem; }
.quote-qty { display: flex; align-items: center; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; overflow: hidden; }
.quote-qty-btn {
  background: transparent;
  border: none;
  color: var(--ink, #e8e0d4);
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}
.quote-qty-btn:hover { background: rgba(201,149,90,0.18); color: var(--copper, #c9955a); }
.quote-qty-input {
  width: 38px;
  height: 26px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--ink, #e8e0d4);
  font-size: 0.82rem;
  font-family: 'Montserrat', sans-serif;
  -moz-appearance: textfield;
}
.quote-qty-input::-webkit-outer-spin-button, .quote-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quote-remove {
  background: none;
  border: none;
  color: var(--muted, #a89880);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0 0.2rem;
}
.quote-remove:hover { color: #d96a5a; }
.quote-note-input {
  grid-area: note;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--ink, #e8e0d4);
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
  font-family: 'Montserrat', sans-serif;
  resize: vertical;
  min-height: 28px;
}
.quote-note-input::placeholder { color: var(--muted, #a89880); opacity: 0.7; }
.quote-note-input:focus { outline: none; border-color: rgba(201,149,90,0.5); }
.quote-actions {
  display: flex;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.quote-btn {
  flex: 1 1 auto;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.quote-btn-primary { background: var(--copper, #c9955a); color: #111; border-color: var(--copper, #c9955a); }
.quote-btn-primary:hover { background: #d4a86a; }
.quote-btn-ghost { background: transparent; color: var(--muted, #a89880); border-color: rgba(255,255,255,0.12); flex: 0 0 auto; }
.quote-btn-ghost:hover { color: var(--copper, #c9955a); border-color: rgba(201,149,90,0.5); }

.quote-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2003;
  padding: 1rem;
}
.quote-modal-overlay.open { display: flex; }
.quote-modal {
  background: rgba(12,12,12,0.95);
  border: 1px solid rgba(201,149,90,0.35);
  border-radius: 14px;
  padding: 1.4rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.quote-modal-head {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink, #e8e0d4);
  margin-bottom: 0.3rem;
}
.quote-modal-sub { color: var(--muted, #a89880); font-size: 0.85rem; line-height: 1.5; margin-bottom: 1rem; }
.quote-channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.quote-channel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--ink, #e8e0d4);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.quote-channel:hover { border-color: var(--copper, #c9955a); background: rgba(201,149,90,0.12); }
.quote-channel:disabled { opacity: 0.5; cursor: default; }
.quote-chan-ico { font-size: 1.2rem; }

@media (max-width: 768px) {
  #quoteToggle { bottom: 1.2rem; left: 1.2rem; width: 50px; height: 50px; }
  .quote-panel { left: 1rem; right: 1rem; bottom: 1.2rem; width: auto; max-width: none; }
  .quote-channel-grid { grid-template-columns: 1fr; }
}

/* Add-to-List button (product cards + detail page) */
.qab-ico { font-style: normal; font-weight: 700; font-size: 0.95em; line-height: 1; display: inline-block; transition: transform 0.2s ease; }
.quote-add-btn {
  margin-top: 0.85rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  background: rgba(201,149,90,0.06);
  border: 1px solid rgba(201,149,90,0.45);
  color: var(--copper, #c9955a);
  border-radius: var(--radius, 3px);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font-family: 'Montserrat', sans-serif;
}
.quote-add-btn:hover {
  background: var(--copper, #c9955a);
  color: #111;
  border-color: var(--copper, #c9955a);
  box-shadow: 0 4px 14px rgba(201,149,90,0.28);
  transform: translateY(-1px);
}
.quote-add-btn:hover .qab-ico { transform: scale(1.15); }
.quote-add-btn.added {
  background: var(--copper, #c9955a);
  color: #111;
  border-color: var(--copper, #c9955a);
  box-shadow: 0 4px 14px rgba(201,149,90,0.28);
}
.quote-add-btn.added .qab-ico { transform: scale(1.1); }
