/* Najaf Impex Custom Quote. Everything is prefixed njq- so it cannot clash with the theme. */
.njq-ui, .njq-dlg, .njq-link {
  --ink: #15191d; --steel: #5b6671; --line: #dde1e5; --paper: #f4f5f6; --yellow: #f2b705;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-family: var(--body);
}
.njq-ui *, .njq-dlg *, .njq-dlg *::before { box-sizing: border-box; }
html.njq-lock, html.njq-lock body { overflow: hidden !important; }

/* buttons */
.njq-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 2px solid var(--yellow); background: var(--yellow); color: var(--ink) !important; font: 600 1rem var(--body); border-radius: 4px; cursor: pointer; text-decoration: none !important; text-transform: none; letter-spacing: normal; line-height: 1.2; transition: background .15s, border-color .15s; }
.njq-btn:hover { background: #ffc928; border-color: #ffc928; }
.njq-btn-2 { background: #fff; border-color: var(--ink); }
.njq-btn-2:hover { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.njq-btn[disabled] { opacity: .6; cursor: wait; }
.njq-wrap { margin: 14px 0; }
.njq-wrap .njq-btn { width: 100%; max-width: 340px; }
.njq-link { font-weight: 600; }
.njq-count { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--yellow); color: var(--ink); text-align: center; font-size: .85rem; }

/* floating button (bottom left, above the scroll-to-top button) */
.njq-fab { position: fixed; left: 18px; bottom: 90px; z-index: 9990; display: none; align-items: center; gap: 8px; background: var(--ink); color: #fff !important; padding: 12px 18px; border-radius: 40px; font-weight: 600; text-decoration: none !important; box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.njq-fab b { background: var(--yellow); color: var(--ink); border-radius: 11px; min-width: 24px; padding: 0 7px; text-align: center; font-size: .9rem; }

/* modal */
.njq-ov { position: fixed; inset: 0; z-index: 99999; background: rgba(21,25,29,.62); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 4vh 14px; }
.njq-dlg { position: relative; background: #fff; color: var(--ink); width: 100%; max-width: 560px; border-radius: 6px; border-top: 4px solid var(--yellow); padding: 30px 28px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.35); margin: auto 0; }
.njq-dlg.njq-lg { max-width: 760px; }
.njq-dlg.njq-sm { max-width: 460px; text-align: center; }
.njq-x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 30px; line-height: 1; color: var(--steel); cursor: pointer; }
.njq-x:hover { color: var(--ink); }
.njq-dlg h2 { font-family: var(--display); font-size: 2.1rem; line-height: 1.05; font-weight: 700; margin: 0 0 6px; color: var(--ink); text-transform: none; letter-spacing: normal; }
.njq-dlg h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 700; margin: 22px 0 8px; color: var(--ink); text-transform: none; letter-spacing: normal; }
.njq-sub { color: var(--steel); font-size: .95rem; margin: 6px 0 0; }
.njq-added .njq-check { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 30px; line-height: 54px; font-weight: 700; text-align: center; }
.njq-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.njq-quoteno { font-size: 1.25rem; margin: 14px 0 0; }

/* form */
.njq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 16px; }
.njq-f { display: flex; flex-direction: column; min-width: 0; }
.njq-wide { grid-column: 1 / -1; }
.njq-f label { font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
.njq-req { color: #c0392b; }
.njq-f input, .njq-f textarea { width: 100%; padding: 11px 12px; font: 400 1rem var(--body); color: var(--ink); background: #fff; border: 1px solid #b9c0c7; border-radius: 4px; margin: 0; }
.njq-f input:focus, .njq-f textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--ink); }
.njq-f input[aria-invalid="true"] { border-color: #c0392b; }
.njq-err { color: #c0392b; font-size: .85rem; margin: 4px 0 0; min-height: 0; }
.njq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.njq-submit { width: 100%; margin-top: 18px; }
.njq-status { color: #c0392b; font-weight: 600; margin: 14px 0 0; }
.njq-status:empty { display: none; }

/* selected products (popup + quote page) */
.njq-sum, .njq-list, .njq-opts { list-style: none; margin: 0; padding: 0; }
.njq-sum { max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 4px; }
.njq-sum li { display: flex; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: .95rem; margin: 0; }
.njq-sum li:first-child { border-top: 0; }
.njq-q { color: var(--steel); }
.njq-thumb { flex: 0 0 56px; width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.njq-ph { display: grid; place-items: center; color: #8b8f94; }
.njq-ph svg { width: 56%; height: auto; }
.njq-opts { font-size: .9rem; color: var(--steel); margin-top: 2px; }
.njq-opts li { margin: 0; padding: 0; }
.njq-opts b { color: var(--ink); font-weight: 600; }

/* Custom Quote page */
.njq-page { max-width: 980px; margin: 0 auto; padding: 8px 0 30px; }
.njq-row { display: flex; align-items: center; gap: 18px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 6px; margin: 0 0 12px; background: #fff; list-style: none; }
.njq-row .njq-thumb { flex-basis: 84px; width: 84px; height: 84px; }
.njq-info { flex: 1; min-width: 0; }
.njq-info h3 { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; margin: 0 0 4px; font-weight: 700; }
.njq-info h3 a { color: var(--ink); text-decoration: none; }
.njq-info h3 a:hover { text-decoration: underline; }
.njq-qty { display: flex; flex-direction: column; font-size: .85rem; color: var(--steel); gap: 4px; }
.njq-qty input { width: 110px; padding: 10px; font: 400 1rem var(--body); border: 1px solid #b9c0c7; border-radius: 4px; }
.njq-rm { background: none; border: 0; color: #c0392b; font: 600 .95rem var(--body); cursor: pointer; text-decoration: underline; padding: 8px; }
.njq-bottom { justify-content: space-between; margin-top: 24px; }
.njq-empty { text-align: center; padding: 50px 16px; border: 1px dashed var(--line); border-radius: 6px; }
.njq-empty h2 { font-family: var(--display); font-size: 2rem; margin: 0 0 8px; }
.njq-empty p { color: var(--steel); margin: 0 0 20px; }

@media (max-width: 640px) {
  .njq-ov { padding: 0; align-items: stretch; }
  .njq-dlg, .njq-dlg.njq-lg, .njq-dlg.njq-sm { max-width: 100%; min-height: 100%; border-radius: 0; margin: 0; padding: 26px 16px 24px; }
  .njq-grid { grid-template-columns: 1fr; }
  .njq-actions .njq-btn { width: 100%; }
  .njq-row { flex-wrap: wrap; gap: 12px; }
  .njq-row .njq-thumb { flex-basis: 64px; width: 64px; height: 64px; }
  .njq-info { flex-basis: calc(100% - 90px); }
  .njq-bottom { flex-direction: column-reverse; }
  .njq-bottom .njq-btn { width: 100%; }
  .njq-fab { left: 12px; bottom: 84px; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) { .njq-ui *, .njq-btn { transition: none !important; } }

/* [najaf_add_to_quote] block */
.njq-adder { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 18px 0; }
.njq-aq { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.njq-aq input, .njq-aq select { min-width: 120px; padding: 11px 12px; font: 400 1rem var(--body); border: 1px solid #b9c0c7; border-radius: 4px; background: #fff; color: var(--ink); height: 48px; margin: 0; }

.njq-note { background: #fffaf0; border-left: 4px solid var(--yellow); padding: 12px 16px; margin: 0 0 16px; font-size: .95rem; color: var(--ink); }

/* image zoom */
.njq-lens { position: fixed; display: none; z-index: 9980; pointer-events: none; background-repeat: no-repeat; background-color: #fff; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(242,183,5,.95); }
.njq-lens::after { content: ""; position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: #15191d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='M15 15l6 6'/%3E%3C/svg%3E") center / 18px no-repeat; opacity: .92; }
.njq-zoomov { position: fixed; inset: 0; z-index: 100000; background: rgba(21,25,29,.92); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.njq-zoomov img { max-width: 94vw; max-height: 92vh; object-fit: contain; border-radius: 4px; background: #fff; }
.njq-zoomx { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }

/* quantity editor inside the inquiry popup */
.njq-sum { max-height: 300px; }
.njq-sinfo { flex: 1; min-width: 0; }
.njq-qrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.njq-qrow span { width: 100%; color: var(--steel); font-size: .88rem; }
.njq-qin { width: 92px; height: 38px; padding: 6px; text-align: center; font: 600 1rem var(--body); color: var(--ink); background: #fff; border: 1px solid #b9c0c7; border-radius: 4px; margin: 0; }
.njq-step { width: 38px; height: 38px; padding: 0; border: 1px solid #b9c0c7; background: #fff; color: var(--ink); border-radius: 4px; font: 400 22px/1 var(--body); cursor: pointer; }
.njq-step:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* header / menu icon with product count */
.njq-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: inherit !important; text-decoration: none !important; line-height: 1; vertical-align: middle; }
.njq-icon svg { width: 24px; height: 24px; }
.njq-badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--yellow); color: var(--ink); font: 700 .75rem/20px var(--body); text-align: center; align-items: center; justify-content: center; }
.njq-menu-item { display: flex; align-items: center; }
