/* ══════════════════════════════════════════════════════════════════════
   URSO — cart drawer (ucart)
   ══════════════════════════════════════════════════════════════════════ */

.ucart-el { position: relative; }

.ucart {
  position: fixed;
  inset: 0;
  z-index: 1000010;
  visibility: hidden;
  pointer-events: none;
}
.ucart.is-open {
  visibility: visible;
  pointer-events: auto;
}

.ucart__overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 3, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.ucart.is-open .ucart__overlay {
  opacity: 1;
  visibility: visible;
}

.ucart__inner {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: #090707;
  color: #ffffff;
  transform: translateX(100%);
  transition: transform .32s ease;
  display: flex;
  flex-direction: column;
  z-index: 1;
  box-shadow: -12px 0 40px rgba(0,0,0,.5);
}
.ucart.is-open .ucart__inner { transform: translateX(0); }

/* ── Cabeçalho ────────────────────────────────────────────────────── */
.ucart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #262424;
  flex: 0 0 auto;
}
.ucart__title {
  font-family: var(--font-heading-family);
  font-size: 20px;
  letter-spacing: 1.2px;
  line-height: 1.1;
  margin: 0;
}
.ucart__close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: 0;
}
.ucart__close:hover { color: #f6c500; }

/* ── Corpo (scroll) ────────────────────────────────────────────────── */
.ucart__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 22px 20px;
  scrollbar-width: thin;
  scrollbar-color: #3f3b37 transparent;
}

/* ── Estado vazio ──────────────────────────────────────────────────── */
.ucart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 8px 30px;
}
.ucart__empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  color: #6b6358;
}
.ucart__empty-text {
  font-family: var(--font-body-family);
  font-size: 14px;
  color: #9c9488;
  margin-bottom: 22px;
}
.ucart__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 180px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s ease, background .2s ease;
}
.ucart__empty-btn {
  background: #f6c500;
  color: #090707;
}
.ucart__empty-btn:hover { filter: brightness(.92); }

/* ── Itens ─────────────────────────────────────────────────────────── */
.ucart__items { list-style: none; margin: 0; padding: 0; }
.ucart__item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #1f1d1b;
}
.ucart__img {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  background: #1a1715;
  object-fit: cover;
  flex: 0 0 auto;
}
.ucart__info { flex: 1 1 auto; min-width: 0; }
.ucart__name {
  font-family: var(--font-body-family);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
}
.ucart__opts {
  font-family: var(--font-body-family);
  font-size: 12px;
  color: #9c9488;
  margin-bottom: 6px;
}
.ucart__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.ucart__price {
  font-family: var(--font-body-family);
  font-size: 15px;
  font-weight: 900;
}
.ucart__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #3f3b37;
  border-radius: 999px;
  overflow: hidden;
}
.ucart__qbtn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  background: none;
  border: 0;
  cursor: pointer;
}
.ucart__qbtn:hover { color: #f6c500; }
.ucart__qin {
  width: 34px;
  height: 32px;
  text-align: center;
  border: 0;
  background: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.ucart__remove {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b6358;
  font-size: 15px;
  cursor: pointer;
  background: none;
  border: 0;
}
.ucart__remove:hover { color: #ff5a4a; }

/* ── Subtotal ──────────────────────────────────────────────────────── */
.ucart__subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 22px;
  font-family: var(--font-body-family);
  font-size: 14px;
  color: #c4bdb1;
}
.ucart__subtotal strong {
  font-size: 18px;
  color: #ffffff;
  font-weight: 900;
}

/* ── Rodapé (CEP + cupom + checkout) ───────────────────────────────── */
.ucart__foot {
  flex: 0 0 auto;
  border-top: 1px solid #262424;
  padding: 14px 22px 20px;
}
.ucart__field {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.ucart__field input {
  flex: 1 1 auto;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #3f3b37;
  background: #3f3b37;
  color: #ffffff;
  font-size: 13px;
  outline: none;
}
.ucart__field input::placeholder { color: #9c9488; }
.ucart__field input:focus { border-color: #f6c500; }
.ucart__obtn {
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #090707;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.ucart__obtn:hover { background: #f6c500; border-color: #f6c500; color: #090707; }
.ucart__msg { font-size: 12px; color: #f6c500; margin: 2px 0 10px; min-height: 1em; }

.ucart__checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.ucart__total-label { font-size: 14px; color: #c4bdb1; }
.ucart__total {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
}
.ucart__go {
  height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  background: #f6c500;
  color: #090707;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
}
.ucart__go:hover { filter: brightness(.92); }

@media screen and (max-width: 480px) {
  .ucart__inner { width: 100vw; }
}
