@charset "UTF-8";
/* ============================================================
   Carrinho de Cotação — cotacao-cart.css
   ============================================================ */
/* Variáveis */
:root {
  --cq-accent: #1a56db;
  --cq-accent-hover: #1648c0;
  --cq-success: #0e7c50;
  --cq-danger: #c0392b;
  --cq-text: #1a1a1a;
  --cq-text-muted: #6b7280;
  --cq-border: #e5e7eb;
  --cq-bg: #ffffff;
  --cq-bg-muted: #f9fafb;
  --cq-sidebar-w: 420px;
  --cq-radius: 10px;
  --cq-shadow: 0 8px 40px rgba(0,0,0,.16);
  --cq-transition: .28s cubic-bezier(.4,0,.2,1); }

/* ── No scroll quando sidebar aberto ── */
body.cq-no-scroll {
  overflow: hidden; }

/* ── Overlay ── */
#cq-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  opacity: 0;
  transition: opacity var(--cq-transition); }

#cq-overlay.is-visible {
  display: block;
  opacity: 1; }

/* ── Sidebar ── */
#cq-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--cq-sidebar-w);
  max-width: 100vw;
  height: 100dvh;
  background: var(--cq-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: var(--cq-shadow);
  transform: translateX(100%);
  transition: transform var(--cq-transition);
  outline: none; }

#cq-sidebar.is-open {
  transform: translateX(0); }

/* ── Header ── */
.cq-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--cq-border);
  flex-shrink: 0; }

.cq-sidebar-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cq-text);
  letter-spacing: -.01em; }

.cq-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--cq-border);
  border-radius: 8px;
  background: none;
  color: var(--cq-text-muted);
  cursor: pointer;
  transition: background .18s, color .18s;
  padding: 0; }

.cq-close-btn:hover {
  background: var(--cq-bg-muted);
  color: var(--cq-text); }

/* ── Lista ── */
.cq-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth; }

/* Item vazio */
.cq-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 3rem 1rem;
  color: var(--cq-text-muted);
  font-size: 0.9rem; }

.cq-empty .cq-icon {
  font-size: 2.5rem;
  opacity: .5; }

/* ── Item do carrinho ── */
.cq-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--cq-border);
  transition: background .15s; }

.cq-item:last-child {
  border-bottom: none; }

.cq-item:hover {
  background: var(--cq-bg-muted); }

/* Imagem */
.cq-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--cq-border);
  display: block; }

.cq-item-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cq-bg-muted);
  font-size: 1.5rem; }

/* Info */
.cq-item-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  line-height: 1.3em; }

.cq-item-title {
  margin: 0;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; }

.cq-item-variation {
  margin: 0;
  font-size: .78rem;
  color: var(--bs-gray);
  font-weight: 500; }

.cq-item-sku {
  margin: 0;
  font-size: .73rem;
  color: #999; }

.cq-item-price {
  margin-top: 4px;
  font-size: .78rem; }

.cq-price-value {
  color: var(--cq-success);
  font-weight: 600; }

.cq-price-consult {
  color: var(--cq-text-muted);
  font-style: italic; }

/* Controles (qty + remover) */
.cq-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px; }

.cq-qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--cq-border);
  border-radius: 7px;
  overflow: hidden; }

.cq-qty-btn {
  background: none;
  border: none;
  width: 26px;
  height: 28px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  color: var(--cq-text);
  transition: background .14s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center; }

.cq-qty-btn:hover {
  background: var(--cq-bg-muted); }

.cq-qty-input {
  width: 52px;
  height: 28px;
  border: none;
  border-left: 1px solid var(--cq-border);
  border-right: 1px solid var(--cq-border);
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  color: var(--cq-text);
  background: var(--cq-bg);
  padding: 0;
  -moz-appearance: textfield; }

.cq-qty-input::-webkit-inner-spin-button,
.cq-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none; }

.cq-qty-input:focus {
  outline: 2px solid var(--cq-accent);
  outline-offset: -1px; }

.cq-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--cq-text-muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s; }

.cq-remove-btn:hover {
  color: var(--cq-danger);
  background: #fef2f2; }

/* ── Footer ── */
.cq-sidebar-footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--cq-border);
  flex-shrink: 0; }

.cq-finalize-btn {
  display: block;
  width: 100%; }

/*---------------------------------------
CONTROLE DE QUANTIDADE
---------------------------------------*/
/* Wrap do input + botão */
.produto-add-wrap {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  /* Controle de quantidade */ }
  .produto-add-wrap .produto-qty-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px; }
  .produto-add-wrap .produto-qty-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af; }
  .produto-add-wrap .produto-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--cq-border, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    height: 42px;
    background-color: #f8f8f8; }
  .produto-add-wrap .produto-qty-btn {
    width: 36px;
    height: 100%;
    background: none;
    border: none;
    font-size: 1.15rem;
    cursor: pointer;
    color: #374151;
    transition: background .14s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; }
  .produto-add-wrap .produto-qty-btn:hover {
    background: #f3f4f6; }
  .produto-add-wrap .produto-qty-input {
    width: 72px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--cq-border, #e5e7eb);
    border-right: 1px solid var(--cq-border, #e5e7eb);
    text-align: center;
    font-size: .9rem;
    font-weight: 600;
    color: #1a1f2e;
    background-color: #f8f8f8;
    padding: 0;
    -moz-appearance: textfield; }
  .produto-add-wrap .produto-qty-input::-webkit-inner-spin-button,
  .produto-add-wrap .produto-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none; }
  .produto-add-wrap .produto-qty-input:focus {
    outline: 2px solid var(--cq-accent, #1a56db);
    outline-offset: -1px; }
  .produto-add-wrap .produto-qty-obs {
    font-size: .68rem;
    color: #9ca3af; }
  .produto-add-wrap .cq-add-btn {
    height: 42px;
    align-self: flex-end;
    /* alinha com o input */
    margin-bottom: 0; }

.cotacao-qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  overflow: hidden;
  background-color: #f8f8f8; }

.cotacao-qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 30px;
  font-size: 1rem;
  cursor: pointer;
  color: #374151;
  transition: background .14s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center; }

.cotacao-qty-btn:hover {
  background: #f3f4f6; }

.cotacao-qty-input {
  width: 58px;
  height: 30px;
  border: none;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  color: #1a1f2e;
  background-color: #f8f8f8;
  padding: 0;
  -moz-appearance: textfield; }

.cotacao-qty-input::-webkit-inner-spin-button,
.cotacao-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none; }

.cotacao-qty-input:focus {
  outline: 2px solid #1a56db;
  outline-offset: -1px; }

.cotacao-remove-btn {
  float: right;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #9ca3af;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s; }

.cotacao-remove-btn:hover {
  color: #c0392b;
  background: #fef2f2; }
