.carrito-shell {
  min-height: 100vh;
  background: #f1f1f3;
}

.carrito-drawer {
  min-height: 100vh;
  background: #f1f1f3;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.carrito-header {
  margin: 12px 12px 10px;
  border-radius: 14px;
  background: linear-gradient(120deg, #ff1f6b, #d4145a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.carrito-header .icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: grid;
  place-items: center;
}

.carrito-title {
  font-weight: 700;
  font-size: 14px;
}

.carrito-spacer {
  width: 30px;
}

.carrito-body {
  padding: 0 12px 12px;
  overflow-y: auto;
}

.carrito-body .empty {
  min-height: 30vh;
}

.carrito-body .cart-list {
  display: grid;
  gap: 10px;
}

.carrito-body .cart-item {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.carrito-body .cart-item img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}

.carrito-body .cart-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.carrito-body .cart-meta {
  font-size: 11px;
  color: #7a7a7a;
  margin-bottom: 2px;
}

.carrito-body .price {
  font-size: 22px;
  color: #e63367;
  font-weight: 800;
}

.cart-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-qty {
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.cart-row-actions .icon-btn {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 6px;
  background: #ef3f70;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.cart-row-actions .icon-btn.remove {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ececec;
  color: #777;
  font-size: 15px;
}

.carrito-footer {
  position: sticky;
  bottom: 0;
  background: #f1f1f3;
  padding: 10px 12px 14px;
  border-top: 1px solid #e7e7eb;
}

.carrito-footer .cart-total {
  margin-bottom: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.carrito-cta {
  width: 100%;
  border-radius: 999px;
  padding: 12px 14px;
  text-align: center;
}

@media (min-width: 1024px) {
  .carrito-shell {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
  }

  .carrito-drawer {
    width: min(430px, 100vw);
    min-height: 100vh;
    background: #f1f1f3;
    box-shadow: -14px 0 30px rgba(0, 0, 0, 0.15);
    border-left: 1px solid #e7e7eb;
  }

  .carrito-header,
  .carrito-body,
  .carrito-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .carrito-header {
    margin: 0;
    border-radius: 0;
  }
}
