/* vitrine-cart.css — gaveta de carrinho da vitrine.
   Herda as cores do tema por variável CSS quando existem, para não fugir da
   identidade da página; os valores depois da vírgula são o fallback. */

#vt-cart-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: inherit;
  color: var(--color-foreground, #121212);
  background: var(--color-background, #f9f7f1);
}

.vt-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.1);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 15px;
}

#vt-cart-close {
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  padding: 0 4px;
}

#vt-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 22px 22px;
}

.vt-cart-empty {
  padding: 48px 0;
  text-align: center;
  opacity: 0.65;
}

.vt-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vt-cart-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}

.vt-cart-item img,
.vt-cart-item .vt-ph {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  object-fit: cover;
  border-radius: 4px;
  background: rgba(18, 18, 18, 0.06);
}

.vt-cart-info {
  flex: 1;
  min-width: 0;
}

.vt-cart-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.vt-cart-price {
  margin: 0 0 10px;
  font-size: 14px;
  opacity: 0.8;
}

.vt-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vt-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(18, 18, 18, 0.2);
  background: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: inherit;
}

.vt-qty span {
  min-width: 20px;
  text-align: center;
  font-size: 14px;
}

.vt-del {
  width: auto !important;
  border: 0 !important;
  padding: 0 0 0 6px;
  font-size: 12px !important;
  text-decoration: underline;
  opacity: 0.6;
}

.vt-cart-foot {
  padding-top: 18px;
}

.vt-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 16px;
  margin-bottom: 14px;
}

.vt-cart-total strong {
  font-size: 19px;
}

.vt-checkout {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: var(--btn-border-radius, 0);
  background: var(--color-button, #b4470f);
  color: var(--color-button-text, #fff);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
}

.vt-checkout[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.vt-cart-note {
  margin: 10px 0 0;
  font-size: 12px;
  text-align: center;
  opacity: 0.6;
}

.vt-cart-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #fdecea;
  color: #8c1d18;
  font-size: 13px;
}

/* A revelação da gaveta fica a cargo da regra do PRÓPRIO tema
   (.bls__canvas.active), que o vitrine-cart.js agora aciona no elemento certo.
   Um override com !important aqui mascararia um seletor errado no JS em vez de
   corrigi-lo — foi exatamente o que escondeu o defeito na primeira tentativa. */
