/* cart-drawer.css - Gaveta de Carrinho Unificada Estilo OX (Plano A VIPS Calçados) */

.vips-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.vips-cart-overlay.is-open,
.vips-cart-overlay.open,
.vips-cart-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vips-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100dvh;
  max-height: 100dvh;
  background: #ffffff;
  color: #0a0a0a;
  z-index: 9999;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(104%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overscroll-behavior: contain;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.vips-cart-drawer.is-open,
.vips-cart-drawer.open,
.vips-cart-drawer.active {
  transform: translateX(0);
}

.vips-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  flex-shrink: 0;
}

.vips-cart__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a0a0a;
  line-height: 1.2;
}

.vips-cart__count {
  font-weight: 600;
  color: #737373;
  margin-left: 2px;
}

.vips-cart__close {
  appearance: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border-radius: 6px;
  color: #0a0a0a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.vips-cart__close:hover {
  background: #f5f5f5;
}

.vips-cart__close:focus-visible,
.vips-cart-qty__btn:focus-visible,
.vips-cart-item__remove:focus-visible,
.vips-cart__cta:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 2px;
}

/* CARD ESCURO BLACK NOVEMBER + CRONÔMETRO */
.vips-cart-promo {
  background: #0a0a0a;
  color: #ffffff;
  margin: 14px 16px 8px;
  padding: 13px 15px 12px;
  border-radius: 10px;
  flex-shrink: 0;
}

.vips-cart-promo__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vips-cart-promo__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.vips-cart-promo__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  flex-shrink: 0;
}

.vips-cart-promo__cd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.vips-cart-promo__cd-box {
  min-width: 33px;
  padding: 4px 4px 3px;
  background: #1b1b1b;
  border: 1px solid #2e2e2e;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.vips-cart-promo__cd-box b {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.vips-cart-promo__cd-box small {
  margin-top: 2px;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.vips-cart-promo__divider {
  height: 1px;
  background: #262626;
  margin: 10px 0 9px;
}

.vips-cart-promo__status {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #e5e5e5;
}

.vips-cart-promo__status strong {
  color: #ffffff;
  font-weight: 800;
}

.vips-cart-promo__track {
  height: 4px;
  width: 100%;
  background: #262626;
  border-radius: 999px;
  overflow: hidden;
}

.vips-cart-promo__fill {
  height: 100%;
  width: 100%;
  background: #ffffff;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.vips-cart-promo__perks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 7px;
  font-size: 10.5px;
  color: #a3a3a3;
}

.vips-cart-promo__perks strong {
  color: #ffffff;
  font-weight: 700;
}

/* LISTA DE ITENS */
.vips-cart__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 18px 14px;
  overscroll-behavior: contain;
}

.vips-cart-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.vips-cart-item__media {
  width: 74px;
  height: 74px;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vips-cart-item__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.vips-cart-item__info {
  min-width: 0;
}

.vips-cart-item__title {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vips-cart-item__meta {
  font-size: 11.5px;
  color: #737373;
  line-height: 1.4;
  margin-bottom: 10px;
}

.vips-cart-item__meta div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vips-cart-item__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vips-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  background: #ffffff;
  height: 34px;
  overflow: hidden;
}

.vips-cart-qty__btn {
  appearance: none;
  background: transparent;
  border: none;
  width: 32px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #0a0a0a;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.vips-cart-qty__btn:hover {
  background: #f5f5f5;
}

.vips-cart-qty__num {
  min-width: 28px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #0a0a0a;
  font-variant-numeric: tabular-nums;
}

.vips-cart-item__remove {
  appearance: none;
  background: transparent;
  border: none;
  padding: 6px 2px;
  font-size: 12px;
  color: #737373;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.vips-cart-item__remove:hover {
  color: #0a0a0a;
}

.vips-cart-item__prices {
  text-align: right;
  white-space: nowrap;
  padding-top: 1px;
}

.vips-cart-item__price {
  font-size: 13.5px;
  font-weight: 800;
  color: #0a0a0a;
  line-height: 1.25;
}

.vips-cart-item__compare {
  font-size: 11.5px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-top: 2px;
}

/* ESTADO VAZIO */
.vips-cart-empty {
  text-align: center;
  padding: 44px 18px;
  color: #737373;
}

.vips-cart-empty__icon {
  margin: 0 auto 12px;
  display: block;
  color: #a3a3a3;
}

.vips-cart-empty__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #0a0a0a;
}

.vips-cart-empty__sub {
  margin: 0;
  font-size: 12.5px;
  color: #737373;
}

/* RODAPÉ FIXO ESTILO OX */
.vips-cart__footer {
  padding: 14px 18px 16px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  flex-shrink: 0;
}

.vips-cart__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vips-cart__row--subtotal {
  font-size: 13px;
  color: #52525b;
  margin-bottom: 10px;
}

.vips-cart__benefit-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #0a0a0a;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.vips-cart__row--total {
  margin-bottom: 6px;
}

.vips-cart__total-label {
  font-size: 15px;
  font-weight: 700;
  color: #0a0a0a;
}

.vips-cart__total-val {
  font-size: 19px;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.02em;
}

.vips-cart__row--pix {
  margin-bottom: 14px;
}

.vips-cart__pix-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #52525b;
}

.vips-cart__pix-tag {
  display: inline-block;
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.vips-cart__pix-val {
  font-size: 14.5px;
  font-weight: 800;
  color: #16a34a;
}

.vips-cart__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  background: #0a0a0a;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.vips-cart__cta:hover {
  background: #262626;
}

.vips-cart__trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 10.5px;
  color: #52525b;
}

.vips-cart__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

body.vips-cart-open {
  overflow: hidden;
}

@media (max-width: 440px) {
  .vips-cart-drawer {
    max-width: 100vw;
  }
  .vips-cart-promo {
    margin: 12px 14px 6px;
    padding: 12px 13px 11px;
  }
  .vips-cart-promo__cd-box {
    min-width: 30px;
  }
  .vips-cart__body {
    padding: 4px 14px 12px;
  }
  .vips-cart__footer {
    padding: 12px 14px 15px;
  }
  .vips-cart__trust {
    font-size: 10px;
  }
}
